Skip to content
Snippets Groups Projects
Unverified Commit 91f31b4e authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

test(config): Refactor tests for `getDefault` function (#23078)

parent 4180370e
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,9 @@ describe('config/defaults', () => { ...@@ -28,8 +28,9 @@ describe('config/defaults', () => {
expect(val).toBe(true); expect(val).toBe(true);
}); });
['string', 'object', 'integer'].forEach((type: string) => { it.each(['string', 'object', 'integer'])(
it(`returns null for ${type} values`, () => { 'returns null for %s values',
(type: string) => {
const option: RenovateOptions = { const option: RenovateOptions = {
type: type as 'string' | 'object' | 'integer', type: type as 'string' | 'object' | 'integer',
description: 'thing', description: 'thing',
...@@ -38,7 +39,7 @@ describe('config/defaults', () => { ...@@ -38,7 +39,7 @@ describe('config/defaults', () => {
const val = getDefault(option); const val = getDefault(option);
expect(val).toBeNull(); expect(val).toBeNull();
}); }
}); );
}); });
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment