0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/workers/global/config/parse/util.spec.ts
RahulGautamSingh 0a438657e8
fix(validation): massage config (#28458)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-04-17 05:04:21 +00:00

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);
});
});