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

35 lines
696 B
TypeScript

import { RenovateForkMigration } from './renovate-fork-migration';
describe('config/migrations/custom/renovate-fork-migration', () => {
it('should migrate true', () => {
expect(RenovateForkMigration).toMigrate(
{
renovateFork: true,
},
{
forkProcessing: 'enabled',
},
);
});
it('should migrate false', () => {
expect(RenovateForkMigration).toMigrate(
{
renovateFork: false,
},
{
forkProcessing: 'disabled',
},
);
});
it('should not migrate non boolean value', () => {
expect(RenovateForkMigration).toMigrate(
{
renovateFork: 'test',
},
{},
);
});
});