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

Leave deref() do their job

parent 3983b305
Branches
Tags
No related merge requests found
......@@ -3,7 +3,6 @@
"description": "sub-schema mixins",
"schemas": [
{
"id": "#",
"type": "object",
"definitions": {
"inner": {
......
......@@ -5,7 +5,6 @@
{
"description": "should handle internal $refs",
"schema": {
"id": "#",
"definitions": {
"integer": {
"type": "integer"
......
fs = require('fs')
glob = require('glob')
deref = require('deref')
jsfaker = require('../lib')
require('./formats').register(jsfaker)
......@@ -54,10 +53,7 @@ glob.sync("#{__dirname}/**/*.json").forEach (file) ->
expect(error).toMatch new RegExp('^' + test.throws + '$', 'i')
if test.valid
schema = deref.util.normalizeSchema(schema)
try
refs = [schema] if schema.id
expect(sample).toHaveSchema schema, refs
catch e
console.log JSON.stringify(schema, null, 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment