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