Add script to validate the test dictionary data against JSON schemas

This commit is contained in:
toasted-nutbread 2020-02-18 22:19:33 -05:00
parent 09ea007883
commit da079820e6

12
test/test-dictionary.js Normal file
View File

@ -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(); }