Remove node data for 'simple' mode, since this is never used (#1538)

This commit is contained in:
toasted-nutbread 2021-03-17 21:55:17 -04:00 committed by GitHub
parent f8b2483f0f
commit 89ec1c7572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1769 deletions

File diff suppressed because it is too large Load Diff

View File

@ -184,7 +184,7 @@ async function main() {
const {name, mode, text} = test; const {name, mode, text} = test;
const options = buildOptions(optionsPresets, test.options, title); const options = buildOptions(optionsPresets, test.options, title);
const [definitions, length] = clone(await translator.findTerms(mode, text, options)); 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}); actualResults1.push({name, length, definitions});
actualResults2.push({name, noteDataList}); actualResults2.push({name, noteDataList});
if (!write) { if (!write) {