2020-02-19 03:19:33 +00:00
|
|
|
const yomichanTest = require('./yomichan-test');
|
|
|
|
const dictionaryValidate = require('./dictionary-validate');
|
|
|
|
|
|
|
|
|
|
|
|
async function main() {
|
2020-02-22 17:58:33 +00:00
|
|
|
const archive = yomichanTest.createTestDictionaryArchive('valid-dictionary1');
|
2020-02-19 03:19:33 +00:00
|
|
|
const schemas = dictionaryValidate.getSchemas();
|
|
|
|
await dictionaryValidate.validateDictionary(archive, schemas);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (require.main === module) { main(); }
|