Skip to content

Commit 671bad6

Browse files
committed
fix: JavaScript test
1 parent 44f6447 commit 671bad6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ var assert = require('assert');
77
var refs = {
88
'http://localhost:1234/integer.json': require('./remotes/integer.json'),
99
'http://localhost:1234/subSchemas.json': require('./remotes/subSchemas.json'),
10-
'http://localhost:1234/folder/folderInteger.json': require('./remotes/folder/folderInteger.json')
10+
'http://localhost:1234/folder/folderInteger.json': require('./remotes/folder/folderInteger.json'),
11+
'http://localhost:1234/name.json': require('./remotes/name.json')
1112
};
1213

1314
runTest(4);
1415
runTest(6);
1516

1617
function runTest(draft) {
17-
var opts = {addUsedSchema: false};
18+
var opts = {};
1819
if (draft == 4) opts.meta = false;
1920
var ajv = new Ajv(opts);
2021
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json'));

0 commit comments

Comments
 (0)