Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-tymoshenko committed Jan 18, 2024
1 parent 69a34a2 commit 99ba443
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/allof.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ test('allOf: throw Error if types mismatch ', (t) => {
}
try {
build(schema)
t.fail('should throw the MergeError')
} catch (error) {
t.ok(error instanceof Error)
t.equal(error.message, 'Failed to merge "type" keyword schemas.')
Expand All @@ -634,6 +635,7 @@ test('allOf: throw Error if format mismatch ', (t) => {
}
try {
build(schema)
t.fail('should throw the MergeError')
} catch (error) {
t.ok(error instanceof Error)
t.equal(error.message, 'Failed to merge "format" keyword schemas.')
Expand Down

0 comments on commit 99ba443

Please sign in to comment.