mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 02:29:51 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
24 lines
627 B
TypeScript
24 lines
627 B
TypeScript
import { VersionStrategyMigration } from './version-strategy-migration.ts';
|
|
|
|
describe('config/migrations/custom/version-strategy-migration', () => {
|
|
it('should migrate versionStrategy="widen" to rangeStrategy="widen"', async () => {
|
|
await expect(VersionStrategyMigration).toMigrate(
|
|
{
|
|
versionStrategy: 'widen',
|
|
},
|
|
{
|
|
rangeStrategy: 'widen',
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should just remove property when versionStrategy not equals to "widen"', async () => {
|
|
await expect(VersionStrategyMigration).toMigrate(
|
|
{
|
|
versionStrategy: 'test',
|
|
},
|
|
{},
|
|
);
|
|
});
|
|
});
|