0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/config/migrations/custom/include-forks-migration.spec.ts
2023-11-07 15:50:29 +00:00

34 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',
},
{},
);
});
});