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