mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
26 lines
513 B
TypeScript
26 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',
|
|
},
|
|
);
|
|
});
|
|
});
|