From 8ef351a9daac22abec5b341cca4209d7595aa4f5 Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sat, 10 Feb 2024 12:31:34 +0700 Subject: Add benchmarks for Translator class methods (#654) * add translator benches * fix path * update test names * remove unnecessary window, rename bench to translator --- test/fixtures/translator-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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} */ -async function createTranslatorContext(dictionaryDirectory, dictionaryName) { +export async function createTranslatorContext(dictionaryDirectory, dictionaryName) { // Dictionary const testDictionary = createDictionaryArchive(dictionaryDirectory, dictionaryName); const testDictionaryContent = await testDictionary.generateAsync({type: 'arraybuffer'}); -- cgit v1.2.3