diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-17 21:32:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 21:32:55 -0400 |
commit | f8b2483f0f858d53c755461d5013c9eda81f54ea (patch) | |
tree | eeb7840d32c937ae9beb82c049e4786aaa36470f /test | |
parent | 28f97ba40b165eb88f1e6b9820d30e7b93b13fe3 (diff) |
Fix incorrect mode in translator test (#1537)
Diffstat (limited to 'test')
-rw-r--r-- | test/data/translator-test-results-note-data1.json | 24 | ||||
-rw-r--r-- | test/test-translator.js | 2 |
2 files changed, 13 insertions, 13 deletions
diff --git a/test/data/translator-test-results-note-data1.json b/test/data/translator-test-results-note-data1.json index 031ac26a..1126e1f6 100644 --- a/test/data/translator-test-results-note-data1.json +++ b/test/data/translator-test-results-note-data1.json @@ -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, diff --git a/test/test-translator.js b/test/test-translator.js index ef431c46..1d2cfb9d 100644 --- a/test/test-translator.js +++ b/test/test-translator.js @@ -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) { |