diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-02 22:20:47 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-02 22:20:47 -0500 |
commit | 7a51a0fbde445e346a83982dd6a16ce164521e26 (patch) | |
tree | 0d19ad4839622f1a5c375a89f6719b64b9a83a83 /test/schema-validate.js | |
parent | 46fee07d36b3966af9bacca8c6253b044bde07ee (diff) |
Abstract Yomichan extension script execution
Diffstat (limited to 'test/schema-validate.js')
-rw-r--r-- | test/schema-validate.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/schema-validate.js b/test/schema-validate.js index a4f2d94c..eb31aa8d 100644 --- a/test/schema-validate.js +++ b/test/schema-validate.js @@ -17,9 +17,11 @@ */ const fs = require('fs'); -const yomichanTest = require('./yomichan-test'); +const {VM} = require('./yomichan-vm'); -const {JsonSchema} = yomichanTest.requireScript('ext/bg/js/json-schema.js', ['JsonSchema']); +const vm = new VM(); +vm.execute('bg/js/json-schema.js'); +const JsonSchema = vm.get('JsonSchema'); function main() { |