summaryrefslogtreecommitdiff
path: root/test/test-json-schema.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-json-schema.js')
-rw-r--r--test/test-json-schema.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-json-schema.js b/test/test-json-schema.js
index d082a53f..ba0131bf 100644
--- a/test/test-json-schema.js
+++ b/test/test-json-schema.js
@@ -25,19 +25,19 @@ vm.execute([
'js/general/cache-map.js',
'js/data/json-schema.js'
]);
-const JsonSchemaValidator = vm.get('JsonSchemaValidator');
+const JsonSchema = vm.get('JsonSchema');
function schemaValidate(schema, value) {
- return new JsonSchemaValidator().isValid(value, schema);
+ return new JsonSchema(schema).isValid(value);
}
function getValidValueOrDefault(schema, value) {
- return new JsonSchemaValidator().getValidValueOrDefault(schema, value);
+ return new JsonSchema(schema).getValidValueOrDefault(value);
}
function createProxy(schema, value) {
- return new JsonSchemaValidator().createProxy(value, schema);
+ return new JsonSchema(schema).createProxy(value);
}
function clone(value) {