aboutsummaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/translator-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixtures/translator-test.js b/test/fixtures/translator-test.js
index 6562931c..58247b70 100644
--- a/test/fixtures/translator-test.js
+++ b/test/fixtures/translator-test.js
@@ -32,7 +32,7 @@ import {DictionaryImporterMediaLoader} from '../mocks/dictionary-importer-media-
import {createDomTest} from './dom-test.js';
const extDir = join(dirname(fileURLToPath(import.meta.url)), '../../ext');
-const deinflectionReasonsPath = join(extDir, 'data/deinflect.json');
+const languageTransformDescriptorPath = join(extDir, 'data/language/japanese-transforms.json');
vi.stubGlobal('indexedDB', indexedDB);
vi.stubGlobal('IDBKeyRange', IDBKeyRange);
@@ -65,8 +65,8 @@ async function createTranslatorContext(dictionaryDirectory, dictionaryName) {
// Setup translator
const translator = new Translator({database: dictionaryDatabase});
- /** @type {import('deinflector').ReasonsRaw} */
- const deinflectionReasons = parseJson(readFileSync(deinflectionReasonsPath, {encoding: 'utf8'}));
+ /** @type {import('language-transformer').LanguageTransformDescriptor} */
+ const deinflectionReasons = parseJson(readFileSync(languageTransformDescriptorPath, {encoding: 'utf8'}));
translator.prepare(deinflectionReasons);
// Assign properties