mirror of
https://github.com/renovatebot/renovate.git
synced 2025-03-12 15:26:58 +00:00

Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com> Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
30 lines
675 B
TypeScript
30 lines
675 B
TypeScript
import { EnabledManagersMigration } from './enabled-managers-migration';
|
|
|
|
describe('config/migrations/custom/enabled-managers-migration', () => {
|
|
it('migrates', () => {
|
|
expect(EnabledManagersMigration).toMigrate(
|
|
{
|
|
enabledManagers: ['test1', 'yarn', 'test2', 'regex', 'custom.regex'],
|
|
},
|
|
{
|
|
enabledManagers: [
|
|
'test1',
|
|
'npm',
|
|
'test2',
|
|
'custom.regex',
|
|
'custom.regex',
|
|
],
|
|
},
|
|
);
|
|
|
|
// coverage
|
|
expect(EnabledManagersMigration).not.toMigrate(
|
|
{
|
|
enabledManagers: undefined,
|
|
},
|
|
{
|
|
enabledManagers: undefined,
|
|
},
|
|
);
|
|
});
|
|
});
|