2022-01-13 01:50:20 -07:00
|
|
|
import { PinVersionsMigration } from './pin-versions-migration';
|
|
|
|
|
|
|
|
describe('config/migrations/custom/pin-versions-migration', () => {
|
|
|
|
it('should migrate true', () => {
|
|
|
|
expect(PinVersionsMigration).toMigrate(
|
|
|
|
{
|
|
|
|
pinVersions: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rangeStrategy: 'pin',
|
2023-11-07 08:50:29 -07:00
|
|
|
},
|
2022-01-13 01:50:20 -07:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should migrate false', () => {
|
|
|
|
expect(PinVersionsMigration).toMigrate(
|
|
|
|
{
|
|
|
|
pinVersions: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rangeStrategy: 'replace',
|
2023-11-07 08:50:29 -07:00
|
|
|
},
|
2022-01-13 01:50:20 -07:00
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|