From cdf191336aa616a206b977ba3beeb1233cf41c32 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 28 Jun 2020 12:38:34 -0400 Subject: Clone function (#624) * Add clone function * Replace utilIsolate with clone * Replace JsonSchema.isolate with clone function * Include core.js for tests which use json-schema.js * Update visisted set --- test/dictionary-validate.js | 5 ++++- test/schema-validate.js | 5 ++++- test/test-schema.js | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/dictionary-validate.js b/test/dictionary-validate.js index f1730852..446de38d 100644 --- a/test/dictionary-validate.js +++ b/test/dictionary-validate.js @@ -21,7 +21,10 @@ const {JSZip} = require('./yomichan-test'); const {VM} = require('./yomichan-vm'); const vm = new VM(); -vm.execute('bg/js/json-schema.js'); +vm.execute([ + 'mixed/js/core.js', + 'bg/js/json-schema.js' +]); const JsonSchema = vm.get('JsonSchema'); diff --git a/test/schema-validate.js b/test/schema-validate.js index 761f0a1c..4c01fa70 100644 --- a/test/schema-validate.js +++ b/test/schema-validate.js @@ -19,7 +19,10 @@ const fs = require('fs'); const {VM} = require('./yomichan-vm'); const vm = new VM(); -vm.execute('bg/js/json-schema.js'); +vm.execute([ + 'mixed/js/core.js', + 'bg/js/json-schema.js' +]); const JsonSchema = vm.get('JsonSchema'); diff --git a/test/test-schema.js b/test/test-schema.js index 7620ab16..f0a99c3b 100644 --- a/test/test-schema.js +++ b/test/test-schema.js @@ -19,7 +19,10 @@ const assert = require('assert'); const {VM} = require('./yomichan-vm'); const vm = new VM(); -vm.execute('bg/js/json-schema.js'); +vm.execute([ + 'mixed/js/core.js', + 'bg/js/json-schema.js' +]); const JsonSchema = vm.get('JsonSchema'); -- cgit v1.2.3