mirror of https://github.com/renovatebot/renovate
35 lines
696 B
TypeScript
35 lines
696 B
TypeScript
import { IncludeForksMigration } from './include-forks-migration';
|
|
|
|
describe('config/migrations/custom/include-forks-migration', () => {
|
|
it('should migrate true', () => {
|
|
expect(IncludeForksMigration).toMigrate(
|
|
{
|
|
includeForks: true,
|
|
},
|
|
{
|
|
forkProcessing: 'enabled',
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should migrate false', () => {
|
|
expect(IncludeForksMigration).toMigrate(
|
|
{
|
|
includeForks: false,
|
|
},
|
|
{
|
|
forkProcessing: 'disabled',
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should not migrate non boolean value', () => {
|
|
expect(IncludeForksMigration).toMigrate(
|
|
{
|
|
includeForks: 'test',
|
|
},
|
|
{},
|
|
);
|
|
});
|
|
});
|