aboutsummaryrefslogtreecommitdiff
path: root/test/dictionary-data.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/dictionary-data.test.js')
-rw-r--r--test/dictionary-data.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dictionary-data.test.js b/test/dictionary-data.test.js
index dcc03d72..bf2d0ace 100644
--- a/test/dictionary-data.test.js
+++ b/test/dictionary-data.test.js
@@ -63,7 +63,7 @@ describe('Dictionary data', () => {
const {mode, text} = data;
const options = createFindTermsOptions(dictionaryName, optionsPresets, data.options);
const {dictionaryEntries, originalTextLength} = await translator.findTerms(mode, text, options);
- const renderResults = mode !== 'simple' ? await getTemplateRenderResults(dictionaryEntries, 'terms', mode, template, expect) : null;
+ const renderResults = mode !== 'simple' ? await getTemplateRenderResults(dictionaryEntries, mode, template, expect) : null;
const noteDataList = mode !== 'simple' ? dictionaryEntries.map((dictionaryEntry) => createTestAnkiNoteData(dictionaryEntry, mode)) : null;
expect.soft(originalTextLength).toStrictEqual(expected1.originalTextLength);
expect.soft(dictionaryEntries).toStrictEqual(expected1.dictionaryEntries);
@@ -76,7 +76,7 @@ describe('Dictionary data', () => {
const {text} = data;
const options = createFindKanjiOptions(dictionaryName, optionsPresets, data.options);
const dictionaryEntries = await translator.findKanji(text, options);
- const renderResults = await getTemplateRenderResults(dictionaryEntries, 'kanji', 'split', template, expect);
+ const renderResults = await getTemplateRenderResults(dictionaryEntries, 'split', template, expect);
const noteDataList = dictionaryEntries.map((dictionaryEntry) => createTestAnkiNoteData(dictionaryEntry, 'split'));
expect.soft(dictionaryEntries).toStrictEqual(expected1.dictionaryEntries);
expect.soft(noteDataList).toEqual(expected2.noteDataList);