summaryrefslogtreecommitdiff
path: root/test/test-translator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-17 21:55:17 -0400
committerGitHub <noreply@github.com>2021-03-17 21:55:17 -0400
commit89ec1c7572c3c3404c4a841074d01a92f62f787f (patch)
tree5a7c691d3d0097396ea31e0081195512f5e39958 /test/test-translator.js
parentf8b2483f0f858d53c755461d5013c9eda81f54ea (diff)
Remove node data for 'simple' mode, since this is never used (#1538)
Diffstat (limited to 'test/test-translator.js')
-rw-r--r--test/test-translator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-translator.js b/test/test-translator.js
index 1d2cfb9d..027fc4f5 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), mode)));
+ const noteDataList = mode !== 'simple' ? clone(definitions.map((definition) => createTestAnkiNoteData(clone(definition), mode))) : null;
actualResults1.push({name, length, definitions});
actualResults2.push({name, noteDataList});
if (!write) {