aboutsummaryrefslogtreecommitdiff
path: root/benches/translator.bench.js
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-06-20 19:27:02 +0200
committerGitHub <noreply@github.com>2024-06-20 17:27:02 +0000
commitd2c930a94d6e445053bcb5e5bb629851165425fc (patch)
tree94ff7034e7d3ab36ed663f353aeb5486bd294d1c /benches/translator.bench.js
parent1a866b3997310a04fc146b91eb47a59a3f049589 (diff)
support css file in dictionaries (#1080)
* get styles in db * get styles in settings * use styles * fix test * scope * fix comma separated * escape dict name in css selector * g regex * get styles in anki * fix tests * more specificity * whitespace * test importing * test handlebars * add styles to glossary-first
Diffstat (limited to 'benches/translator.bench.js')
-rw-r--r--benches/translator.bench.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benches/translator.bench.js b/benches/translator.bench.js
index 8b9b5118..1b621af6 100644
--- a/benches/translator.bench.js
+++ b/benches/translator.bench.js
@@ -25,7 +25,7 @@ import {createFindKanjiOptions, createFindTermsOptions} from '../test/utilities/
const dirname = path.dirname(fileURLToPath(import.meta.url));
const dictionaryName = 'Test Dictionary 2';
-const translator = await createTranslatorContext(path.join(dirname, '..', 'test', 'data/dictionaries/valid-dictionary1'), dictionaryName);
+const {translator} = await createTranslatorContext(path.join(dirname, '..', 'test', 'data/dictionaries/valid-dictionary1'), dictionaryName);
describe('Translator', () => {
const testInputsFilePath = path.join(dirname, '..', 'test', 'data/translator-test-inputs.json');