Skip to content

Commit

Permalink
Fix example loading
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Nov 15, 2016
1 parent b19ea37 commit d9b40de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/schemas.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
tv4 = require 'tv4'
chai = require 'chai' if not chai
yaml = require 'js-yaml'
path = require 'path'

lib = require '../index'

Expand All @@ -21,7 +22,7 @@ describe 'Schemas', ->
schemas.forEach (schema) ->
describe "#{schema.id} (#{schema.title})", ->
try
cases = lib.getExamples schemaName
cases = lib.getExamples path.basename schema.id, path.extname schema.id
catch e
it.skip "does not have examples"
return
Expand Down

0 comments on commit d9b40de

Please sign in to comment.