Skip to content
Snippets Groups Projects
Commit e42c7938 authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Debug schema/sample on fail

parent 4a7662d5
No related branches found
No related tags found
No related merge requests found
......@@ -32,4 +32,9 @@ glob.sync("#{__dirname}/**/*.json").forEach (file) ->
expect(sample).toHaveType test.type
if test.valid
expect(sample).toHaveSchema schema, refs
try
expect(sample).toHaveSchema schema, refs
catch e
console.log JSON.stringify(schema, null, 2)
console.log JSON.stringify(sample, null, 2)
throw e
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment