mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
24 lines
581 B
TypeScript
24 lines
581 B
TypeScript
import { UpgradeInRangeMigration } from './upgrade-in-range-migration';
|
|
|
|
describe('config/migrations/custom/upgrade-in-range-migration', () => {
|
|
it('should migrate upgradeInRange=true to rangeStrategy="bump"', () => {
|
|
expect(UpgradeInRangeMigration).toMigrate(
|
|
{
|
|
upgradeInRange: true,
|
|
},
|
|
{
|
|
rangeStrategy: 'bump',
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should just remove property when upgradeInRange not equals to true', () => {
|
|
expect(UpgradeInRangeMigration).toMigrate(
|
|
{
|
|
upgradeInRange: false,
|
|
},
|
|
{},
|
|
);
|
|
});
|
|
});
|