summaryrefslogtreecommitdiff
path: root/test/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'test/utilities')
-rw-r--r--test/utilities/anki.js10
-rw-r--r--test/utilities/translator.js6
2 files changed, 8 insertions, 8 deletions
diff --git a/test/utilities/anki.js b/test/utilities/anki.js
index 550d0c0b..6471015a 100644
--- a/test/utilities/anki.js
+++ b/test/utilities/anki.js
@@ -53,9 +53,9 @@ export function createTestAnkiNoteData(dictionaryEntry, mode) {
sentence: {text: '', offset: 0},
documentTitle: 'title',
query: 'query',
- fullQuery: 'fullQuery'
+ fullQuery: 'fullQuery',
},
- media: {}
+ media: {},
};
return createAnkiNoteData(marker, data);
}
@@ -91,11 +91,11 @@ export async function getTemplateRenderResults(dictionaryEntries, mode, template
url: 'url:',
sentence: {
text: `${clozePrefix}${source}${clozeSuffix}`,
- offset: clozePrefix.length
+ offset: clozePrefix.length,
},
documentTitle: 'title',
query: 'query',
- fullQuery: 'fullQuery'
+ fullQuery: 'fullQuery',
};
/** @type {import('anki-note-builder').CreateNoteDetails} */
const details = {
@@ -113,7 +113,7 @@ export async function getTemplateRenderResults(dictionaryEntries, mode, template
glossaryLayoutMode: 'default',
compactTags: false,
requirements: [],
- mediaOptions: null
+ mediaOptions: null,
};
const {note: {fields: noteFields}, errors} = await ankiNoteBuilder.createNote(details);
for (const error of errors) {
diff --git a/test/utilities/translator.js b/test/utilities/translator.js
index e9c08443..e288c8df 100644
--- a/test/utilities/translator.js
+++ b/test/utilities/translator.js
@@ -78,7 +78,7 @@ export function createFindKanjiOptions(dictionaryName, optionsPresets, optionsAr
return {
enabledDictionaryMap,
- removeNonJapaneseCharacters: !!preset.removeNonJapaneseCharacters
+ removeNonJapaneseCharacters: !!preset.removeNonJapaneseCharacters,
};
}
@@ -126,7 +126,7 @@ export function createFindTermsOptions(dictionaryName, optionsPresets, optionsAr
removeNonJapaneseCharacters,
excludeDictionaryDefinitions,
searchResolution,
- language
+ language,
} = preset;
return {
@@ -140,6 +140,6 @@ export function createFindTermsOptions(dictionaryName, optionsPresets, optionsAr
enabledDictionaryMap,
excludeDictionaryDefinitions: Array.isArray(excludeDictionaryDefinitions) ? new Set(excludeDictionaryDefinitions) : null,
searchResolution: typeof searchResolution !== 'undefined' ? searchResolution : 'letter',
- language: typeof language !== 'undefined' ? language : 'ja'
+ language: typeof language !== 'undefined' ? language : 'ja',
};
}