0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/config/migrations/custom/version-strategy-migration.spec.ts
2023-11-07 15:50:29 +00:00

23 lines
600 B
TypeScript

import { VersionStrategyMigration } from './version-strategy-migration';
describe('config/migrations/custom/version-strategy-migration', () => {
it('should migrate versionStrategy="widen" to rangeStrategy="widen"', () => {
expect(VersionStrategyMigration).toMigrate(
{
versionStrategy: 'widen',
},
{
rangeStrategy: 'widen',
},
);
});
it('should just remove property when versionStrategy not equals to "widen"', () => {
expect(VersionStrategyMigration).toMigrate(
{
versionStrategy: 'test',
},
{},
);
});
});