diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-04 21:24:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 21:24:39 -0500 |
commit | 421b60db0f6f132cbc5993488041846055a76d11 (patch) | |
tree | b2b28efc8ed7651c63ca2e728096ab79c6e6ab06 /test/schema-validate.js | |
parent | 6e47b4e241594d68384f62b1faa34c86f85addbf (diff) | |
parent | 7a51a0fbde445e346a83982dd6a16ce164521e26 (diff) |
Merge pull request #387 from toasted-nutbread/yomichan-vm
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() { |