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/match-managers-migration.spec.ts

31 lines
732 B
TypeScript

import { MatchManagersMigration } from './match-managers-migration';
describe('config/migrations/custom/match-managers-migration', () => {
it('migrates old custom manager syntax to new one', () => {
expect(MatchManagersMigration).toMigrate(
{
matchManagers: ['npm', 'regex', 'custom.regex', 'custom.someMgr'],
},
{
matchManagers: [
'npm',
'custom.regex',
'custom.regex',
'custom.someMgr',
],
},
);
});
// coverage
it('only migrates when necessary', () => {
expect(MatchManagersMigration).not.toMigrate(
{
matchManagers: undefined,
},
{
matchManagers: undefined,
},
);
});
});