Fix incorrect mode in translator test (#1537)

This commit is contained in:
toasted-nutbread 2021-03-17 21:32:55 -04:00 committed by GitHub
parent 28f97ba40b
commit f8b2483f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View File

@ -11073,7 +11073,7 @@
},
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"group": true,
"merge": false,
"modeTermKanji": false,
"modeTermKana": false,
@ -11841,7 +11841,7 @@
},
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"group": true,
"merge": false,
"modeTermKanji": false,
"modeTermKana": false,
@ -12443,7 +12443,7 @@
},
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"group": true,
"merge": false,
"modeTermKanji": false,
"modeTermKana": false,
@ -13019,7 +13019,7 @@
},
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"group": true,
"merge": false,
"modeTermKanji": false,
"modeTermKana": false,
@ -13387,7 +13387,7 @@
},
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"group": true,
"merge": false,
"modeTermKanji": false,
"modeTermKana": false,
@ -13755,7 +13755,7 @@
},
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"group": true,
"merge": false,
"modeTermKanji": false,
"modeTermKana": false,
@ -15979,7 +15979,7 @@
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"merge": false,
"merge": true,
"modeTermKanji": false,
"modeTermKana": false,
"modeKanji": false,
@ -17693,7 +17693,7 @@
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"merge": false,
"merge": true,
"modeTermKanji": false,
"modeTermKana": false,
"modeKanji": false,
@ -18186,7 +18186,7 @@
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"merge": false,
"merge": true,
"modeTermKanji": false,
"modeTermKana": false,
"modeKanji": false,
@ -18678,7 +18678,7 @@
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"merge": false,
"merge": true,
"modeTermKanji": false,
"modeTermKana": false,
"modeKanji": false,
@ -29064,7 +29064,7 @@
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"merge": false,
"merge": true,
"modeTermKanji": false,
"modeTermKana": false,
"modeKanji": false,
@ -30774,7 +30774,7 @@
"glossaryLayoutMode": "default",
"compactTags": false,
"group": false,
"merge": false,
"merge": true,
"modeTermKanji": false,
"modeTermKana": false,
"modeKanji": false,

View File

@ -184,7 +184,7 @@ async function main() {
const {name, mode, text} = test;
const options = buildOptions(optionsPresets, test.options, title);
const [definitions, length] = clone(await translator.findTerms(mode, text, options));
const noteDataList = clone(definitions.map((definition) => createTestAnkiNoteData(clone(definition), null)));
const noteDataList = clone(definitions.map((definition) => createTestAnkiNoteData(clone(definition), mode)));
actualResults1.push({name, length, definitions});
actualResults2.push({name, noteDataList});
if (!write) {