diff options
Diffstat (limited to 'test/dictionary-data.write.js')
-rw-r--r-- | test/dictionary-data.write.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dictionary-data.write.js b/test/dictionary-data.write.js index 16cb8d88..880d2379 100644 --- a/test/dictionary-data.write.js +++ b/test/dictionary-data.write.js @@ -35,7 +35,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); const dictionaryName = 'Test Dictionary 2'; const test = await createTranslatorTest(void 0, path.join(dirname, 'data/dictionaries/valid-dictionary1'), dictionaryName); -test('Write dictionary data expected data', async ({window, translator, expect}) => { +test('Write dictionary data expected data', async ({window, translator, styles, expect}) => { // The window property needs to be referenced for it to be initialized. // It is needed for DOM access for structured content. void window; @@ -64,8 +64,8 @@ test('Write dictionary data expected data', async ({window, translator, expect}) 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, mode, template, null) : null; - const noteDataList = mode !== 'simple' ? dictionaryEntries.map((dictionaryEntry) => createTestAnkiNoteData(dictionaryEntry, mode)) : null; + const renderResults = mode !== 'simple' ? await getTemplateRenderResults(dictionaryEntries, mode, template, null, styles) : null; + const noteDataList = mode !== 'simple' ? dictionaryEntries.map((dictionaryEntry) => createTestAnkiNoteData(dictionaryEntry, mode, styles)) : null; actualResults1.push({name, originalTextLength, dictionaryEntries}); actualResults2.push({name, noteDataList}); actualResults3.push({name, results: renderResults}); |