aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/translator-test.js2
1 files changed, 1 insertions, 1 deletions
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);