0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/config/migrations/custom/compatibility-migration.spec.ts
2023-11-07 15:50:29 +00:00

28 lines
589 B
TypeScript

import { CompatibilityMigration } from './compatibility-migration';
describe('config/migrations/custom/compatibility-migration', () => {
it('should migrate object', () => {
expect(CompatibilityMigration).toMigrate(
{
compatibility: {
test: 'test',
},
},
{
constraints: {
test: 'test',
},
},
);
});
it('should just remove property when compatibility is not an object', () => {
expect(CompatibilityMigration).toMigrate(
{
compatibility: 'test',
},
{},
);
});
});