Skip to content

Commit

Permalink
More verbose test for forbiddenKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed May 10, 2017
1 parent 89d1c3e commit e73d0d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/any.js
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,9 @@ describe('any', () => {
Helper.validate(schema, [
[{}, true],
[{ a: undefined }, true],
[{ a: undefined, b: undefined }, true]
[{ a: undefined, b: undefined }, true],
[{ a: 0 }, false, null, 'child "a" fails because ["a" is not allowed]'],
[{ b: 0 }, false, null, 'child "b" fails because ["b" is not allowed]']
], done);
});
});
Expand Down

0 comments on commit e73d0d9

Please sign in to comment.