Skip to content

Commit

Permalink
update validate test
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored and SimenB committed Aug 20, 2019
1 parent ed08f6f commit 53e61f9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/jest-validate/src/__tests__/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ test('omits null and undefined config values', () => {
});
});

test('recursively omits null and undefined config values', () => {
const config = {
coverageThreshold: {
global: null,
},
};
expect(
validate(config, {exampleConfig: validConfig, recursive: true}),
).toEqual({
hasDeprecationWarnings: false,
isValid: true,
});
});

test.each([
[function() {}, function() {}],
[async function() {}, function() {}],
Expand Down

0 comments on commit 53e61f9

Please sign in to comment.