Add script to validate the test dictionary data against JSON schemas
This commit is contained in:
parent
09ea007883
commit
da079820e6
12
test/test-dictionary.js
Normal file
12
test/test-dictionary.js
Normal 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(); }
|
Loading…
Reference in New Issue
Block a user