mirror of https://github.com/renovatebot/renovate
21 lines
573 B
TypeScript
21 lines
573 B
TypeScript
import { logger } from '../../../../logger';
|
|
import { migrateAndValidateConfig } from './util';
|
|
|
|
describe('workers/global/config/parse/util', () => {
|
|
it('massages config', async () => {
|
|
const config = {
|
|
packageRules: [
|
|
{
|
|
description: 'haha',
|
|
matchPackageNames: ['name'],
|
|
enabled: false,
|
|
},
|
|
],
|
|
};
|
|
|
|
const migratedConfig = await migrateAndValidateConfig(config, 'global');
|
|
expect(migratedConfig?.packageRules?.[0].description).toBeArray();
|
|
expect(logger.warn).toHaveBeenCalledTimes(0);
|
|
});
|
|
});
|