mirror of https://github.com/renovatebot/renovate
24 lines
600 B
TypeScript
24 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',
|
|
},
|
|
{},
|
|
);
|
|
});
|
|
});
|