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/recreate-closed-migration.spec.ts
2023-11-07 15:50:29 +00:00

26 lines
532 B
TypeScript

import { RecreateClosedMigration } from './recreate-closed-migration';
describe('config/migrations/custom/recreate-closed-migration', () => {
it('should migrate true', () => {
expect(RecreateClosedMigration).toMigrate(
{
recreateClosed: true,
},
{
recreateWhen: 'always',
},
);
});
it('should migrate false', () => {
expect(RecreateClosedMigration).toMigrate(
{
recreateClosed: false,
},
{
recreateWhen: 'auto',
},
);
});
});