ethers.js/packages/testcases/src.ts/generation-scripts/wordlists.ts

19 lines
478 B
TypeScript
Raw Normal View History

2019-05-15 01:25:46 +03:00
'use strict';
import fs from "fs";
import { resolve } from "path";
import { saveTests, TestCase } from "..";
const testcases: Array<TestCase.Wordlist> = [];
2020-01-04 03:39:22 +03:00
["cz", "en", "es", "fr", "it", "ja", "ko", "zh_cn", "zh_tw"].forEach((locale) => {
let content = fs.readFileSync(resolve(__dirname, "../../input/wordlists", "lang-" + locale + ".txt")).toString();
2019-05-15 01:25:46 +03:00
testcases.push({
content: content,
locale: locale
})
});
saveTests("wordlists", testcases);