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
28 lines
616 B
TypeScript
28 lines
616 B
TypeScript
import { CompatibilityMigration } from './compatibility-migration.ts';
|
|
|
|
describe('config/migrations/custom/compatibility-migration', () => {
|
|
it('should migrate object', async () => {
|
|
await expect(CompatibilityMigration).toMigrate(
|
|
{
|
|
compatibility: {
|
|
test: 'test',
|
|
},
|
|
},
|
|
{
|
|
constraints: {
|
|
test: 'test',
|
|
},
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should just remove property when compatibility is not an object', async () => {
|
|
await expect(CompatibilityMigration).toMigrate(
|
|
{
|
|
compatibility: 'test',
|
|
},
|
|
{},
|
|
);
|
|
});
|
|
});
|