summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-dictionary.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-dictionary.js b/test/test-dictionary.js
new file mode 100644
index 00000000..84014540
--- /dev/null
+++ b/test/test-dictionary.js
@@ -0,0 +1,12 @@
+const yomichanTest = require('./yomichan-test');
+const dictionaryValidate = require('./dictionary-validate');
+
+
+async function main() {
+ const archive = yomichanTest.createTestDictionaryArchive();
+ const schemas = dictionaryValidate.getSchemas();
+ await dictionaryValidate.validateDictionary(archive, schemas);
+}
+
+
+if (require.main === module) { main(); }