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

30 lines
620 B
TypeScript

import { StabilityDaysMigration } from './stability-days-migration';
describe('config/migrations/custom/stability-days-migration', () => {
it('migrates', () => {
expect(StabilityDaysMigration).toMigrate(
{
stabilityDays: 0,
},
{
minimumReleaseAge: null,
},
);
expect(StabilityDaysMigration).toMigrate(
{
stabilityDays: 2,
},
{
minimumReleaseAge: '2 days',
},
);
expect(StabilityDaysMigration).toMigrate(
{
stabilityDays: 1,
},
{
minimumReleaseAge: '1 day',
},
);
});
});