Skip to content

Commit

Permalink
update validate test
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Aug 20, 2019
1 parent 8099f8f commit d165a01
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/jest-validate/src/__tests__/validate.test.ts
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 d165a01

Please sign in to comment.