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

27 lines
704 B
TypeScript

import type { RequiredConfig } from '../../types';
import { RequireConfigMigration } from './require-config-migration';
describe('config/migrations/custom/require-config-migration', () => {
it('should migrate requireConfig=true to requireConfig=required', () => {
expect(RequireConfigMigration).toMigrate(
{
requireConfig: 'true' as RequiredConfig,
},
{
requireConfig: 'required',
},
);
});
it('should migrate requireConfig=false to requireConfig=optional', () => {
expect(RequireConfigMigration).toMigrate(
{
requireConfig: 'false' as RequiredConfig,
},
{
requireConfig: 'optional',
},
);
});
});