mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
0a438657e8
Co-authored-by: Rhys Arkins <rhys@arkins.net>
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);
|
|
});
|
|
});
|