diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2024-02-10 12:31:34 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 05:31:34 +0000 |
commit | 8ef351a9daac22abec5b341cca4209d7595aa4f5 (patch) | |
tree | 61ac3984f5b524dfde9a47da3f8564d3f5fe36e8 /test | |
parent | 17111eabdd1a7e1b3c537320ba24e7d4dc507f5b (diff) |
Add benchmarks for Translator class methods (#654)
* add translator benches
* fix path
* update test names
* remove unnecessary window, rename bench to translator
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/translator-test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixtures/translator-test.js b/test/fixtures/translator-test.js index d1b3de8b..a4c65b88 100644 --- a/test/fixtures/translator-test.js +++ b/test/fixtures/translator-test.js @@ -43,7 +43,7 @@ vi.stubGlobal('chrome', chrome); * @param {string} dictionaryName * @returns {Promise<Translator>} */ -async function createTranslatorContext(dictionaryDirectory, dictionaryName) { +export async function createTranslatorContext(dictionaryDirectory, dictionaryName) { // Dictionary const testDictionary = createDictionaryArchive(dictionaryDirectory, dictionaryName); const testDictionaryContent = await testDictionary.generateAsync({type: 'arraybuffer'}); |