summaryrefslogtreecommitdiff
path: root/test/test-dictionary.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-dictionary.js')
-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(); }