diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-23 22:44:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 22:44:20 -0400 |
commit | cda04b576db3ba058c315be606d38dcacca2a8f6 (patch) | |
tree | 32181c23fe450d0e1445af988c25a6ba79acdbc6 /test/test-anki-note-builder.js | |
parent | 022154c3e18d5cc30db2d056a5015405c0cbdcae (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.js | 2 |
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); |