Remove node data for 'simple' mode, since this is never used (#1538)
This commit is contained in:
parent
f8b2483f0f
commit
89ec1c7572
File diff suppressed because it is too large
Load Diff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user