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/pin-versions-migration.spec.ts
2023-11-07 15:50:29 +00:00

25 lines
513 B
TypeScript

import { PinVersionsMigration } from './pin-versions-migration';
describe('config/migrations/custom/pin-versions-migration', () => {
it('should migrate true', () => {
expect(PinVersionsMigration).toMigrate(
{
pinVersions: true,
},
{
rangeStrategy: 'pin',
},
);
});
it('should migrate false', () => {
expect(PinVersionsMigration).toMigrate(
{
pinVersions: false,
},
{
rangeStrategy: 'replace',
},
);
});
});