test: update JSON-Schema-Test-Suite

master
Evgeny Poberezkin 2017-12-02 12:58:13 +00:00
parent 8aadb5d0f2
commit 81b810f421
3 changed files with 9 additions and 3 deletions

View File

@ -12,7 +12,7 @@
".tonic_example.js"
],
"scripts": {
"eslint": "if-node-version \">=4\" eslint lib/*.js lib/compile/*.js spec scripts",
"eslint": "if-node-version \">=4\" eslint lib/*.js lib/compile/*.js spec/*.js scripts",
"jshint": "jshint lib/*.js lib/**/*.js --exclude lib/dotjs/**/*",
"test-spec": "mocha spec/*.spec.js -R spec $(if-node-version 7 echo --harmony-async-await)",
"test-fast": "AJV_FAST_TEST=true npm run test-spec",

@ -1 +1 @@
Subproject commit 8758156cb3bae615e5e75abcab6e757883d10669
Subproject commit 870b9f7ebd35a238ba9d609424db51c7ca027d4a

View File

@ -10,13 +10,19 @@ var remoteRefs = {
'http://localhost:1234/integer.json': require('./JSON-Schema-Test-Suite/remotes/integer.json'),
'http://localhost:1234/subSchemas.json': require('./JSON-Schema-Test-Suite/remotes/subSchemas.json'),
'http://localhost:1234/folder/folderInteger.json': require('./JSON-Schema-Test-Suite/remotes/folder/folderInteger.json'),
'http://localhost:1234/name.json': require('./JSON-Schema-Test-Suite/remotes/name.json')
};
runTest(getAjvInstances(options, {meta: false}), 4, typeof window == 'object'
? suite(require('./JSON-Schema-Test-Suite/tests/draft4/{**/,}*.json', {mode: 'list'}))
: './JSON-Schema-Test-Suite/tests/draft4/{**/,}*.json');
runTest(getAjvInstances(options), 6, typeof window == 'object'
runTest(getAjvInstances(options, {
format: 'full',
formats: {
'json-pointer': /^(?:\/(?:[^~/]|~0|~1)*)*$/
}
}), 6, typeof window == 'object'
? suite(require('./JSON-Schema-Test-Suite/tests/draft6/{**/,}*.json', {mode: 'list'}))
: './JSON-Schema-Test-Suite/tests/draft6/{**/,}*.json');