From fe875bbd99980b175fc366a2bfd4395be9cbad72 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 20 Feb 2024 10:13:57 -0500 Subject: Constructor simplification (#713) * Update AudioDownloader * Update Translator * Update ClipboardMonitor * Update ClipboardReader * Update PanelElement * Update QueryParser * Update DisplayGenerator * Update DisplayHistory * Update DOMDataBinder * Remove unnecessary cast * Update Popup types * One declaration per line * Remove optionals from Frontend constructor * Fix Translator constructor --- 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 f39d832b..95218830 100644 --- a/test/fixtures/translator-test.js +++ b/test/fixtures/translator-test.js @@ -63,7 +63,7 @@ export async function createTranslatorContext(dictionaryDirectory, dictionaryNam expect(errors.length).toEqual(0); // Setup translator - const translator = new Translator({database: dictionaryDatabase}); + const translator = new Translator(dictionaryDatabase); /** @type {import('language-transformer').LanguageTransformDescriptor} */ const deinflectionReasons = parseJson(readFileSync(languageTransformDescriptorPath, {encoding: 'utf8'})); translator.prepare(deinflectionReasons); -- cgit v1.2.3