0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/config/migrations/custom/upgrade-in-range-migration.spec.ts
2023-11-07 15:50:29 +00:00

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,
},
{},
);
});
});