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