mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 13:48:55 +00:00
30 lines
620 B
TypeScript
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',
|
|
},
|
|
);
|
|
});
|
|
});
|