mirror of https://github.com/renovatebot/renovate
21 lines
506 B
TypeScript
21 lines
506 B
TypeScript
import { MatchStringsMigration } from './match-strings-migration';
|
|
|
|
describe('config/migrations/custom/match-strings-migration', () => {
|
|
it('should migrate properly', () => {
|
|
expect(MatchStringsMigration).toMigrate(
|
|
{
|
|
matchStrings: [
|
|
undefined,
|
|
'(?<lookupName>',
|
|
null,
|
|
'(?<lookupName>(?<lookupName>',
|
|
'',
|
|
],
|
|
},
|
|
{
|
|
matchStrings: ['(?<packageName>', '(?<packageName>(?<packageName>'],
|
|
},
|
|
);
|
|
});
|
|
});
|