mirror of
https://github.com/renovatebot/renovate.git
synced 2025-05-13 08:01:49 +00:00
23 lines
581 B
TypeScript
23 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,
|
|
},
|
|
{},
|
|
);
|
|
});
|
|
});
|