aboutsummaryrefslogtreecommitdiff
path: root/test/utilities/anki.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /test/utilities/anki.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'test/utilities/anki.js')
-rw-r--r--test/utilities/anki.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/utilities/anki.js b/test/utilities/anki.js
index 550d0c0b..6471015a 100644
--- a/test/utilities/anki.js
+++ b/test/utilities/anki.js
@@ -53,9 +53,9 @@ export function createTestAnkiNoteData(dictionaryEntry, mode) {
sentence: {text: '', offset: 0},
documentTitle: 'title',
query: 'query',
- fullQuery: 'fullQuery'
+ fullQuery: 'fullQuery',
},
- media: {}
+ media: {},
};
return createAnkiNoteData(marker, data);
}
@@ -91,11 +91,11 @@ export async function getTemplateRenderResults(dictionaryEntries, mode, template
url: 'url:',
sentence: {
text: `${clozePrefix}${source}${clozeSuffix}`,
- offset: clozePrefix.length
+ offset: clozePrefix.length,
},
documentTitle: 'title',
query: 'query',
- fullQuery: 'fullQuery'
+ fullQuery: 'fullQuery',
};
/** @type {import('anki-note-builder').CreateNoteDetails} */
const details = {
@@ -113,7 +113,7 @@ export async function getTemplateRenderResults(dictionaryEntries, mode, template
glossaryLayoutMode: 'default',
compactTags: false,
requirements: [],
- mediaOptions: null
+ mediaOptions: null,
};
const {note: {fields: noteFields}, errors} = await ankiNoteBuilder.createNote(details);
for (const error of errors) {