summaryrefslogtreecommitdiff
path: root/test/test-anki-note-builder.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-23 22:44:20 -0400
committerGitHub <noreply@github.com>2021-03-23 22:44:20 -0400
commitcda04b576db3ba058c315be606d38dcacca2a8f6 (patch)
tree32181c23fe450d0e1445af988c25a6ba79acdbc6 /test/test-anki-note-builder.js
parent022154c3e18d5cc30db2d056a5015405c0cbdcae (diff)
Update simple test (#1551)
* Test null for simple mode * Update test data
Diffstat (limited to 'test/test-anki-note-builder.js')
-rw-r--r--test/test-anki-note-builder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-anki-note-builder.js b/test/test-anki-note-builder.js
index f28bebef..deee5b6c 100644
--- a/test/test-anki-note-builder.js
+++ b/test/test-anki-note-builder.js
@@ -194,7 +194,7 @@ async function main() {
const {name, mode, text} = test;
const options = vm.buildOptions(optionsPresets, test.options);
const [definitions] = clone(await vm.translator.findTerms(mode, text, options));
- const results = clone(await getRenderResults(definitions, 'terms', mode, templates, AnkiNoteBuilder, write));
+ const results = mode !== 'simple' ? clone(await getRenderResults(definitions, 'terms', mode, templates, AnkiNoteBuilder, write)) : null;
actualResults1.push({name, results});
if (!write) {
assert.deepStrictEqual(results, expected1.results);