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

36 lines
737 B
TypeScript

import { RebaseStalePrsMigration } from './rebase-stale-prs-migration';
describe('config/migrations/custom/rebase-stale-prs-migration', () => {
it('should migrate true', () => {
expect(RebaseStalePrsMigration).toMigrate(
{
rebaseStalePrs: true,
},
{
rebaseWhen: 'behind-base-branch',
},
);
});
it('should migrate false', () => {
expect(RebaseStalePrsMigration).toMigrate(
{
rebaseStalePrs: false,
},
{
rebaseWhen: 'conflicted',
},
);
});
it('should migrate null', () => {
expect(RebaseStalePrsMigration).toMigrate(
{
rebaseStalePrs: null,
},
{
rebaseWhen: 'auto',
},
);
});
});