From 637d4a2087b9e93ccd47d689411887b6c40c3992 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 18 Jul 2021 13:43:11 -0400 Subject: Pronunciation template helper (#1840) * Rename field * Set up pronunication components * Fix documentation * Rename function * Update test dependencies * Fix constructor * Log errors * Add pronunciation helper * Add styleApplier argument to _getHtml/_normalizeHtml * Use getAttribute for 'class' to support namespaced elements (e.g. svg) * Update format name * Add optional tag * Update docs --- test/test-anki-note-builder.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test-anki-note-builder.js b/test/test-anki-note-builder.js index b8002c4b..45087134 100644 --- a/test/test-anki-note-builder.js +++ b/test/test-anki-note-builder.js @@ -44,6 +44,7 @@ async function createVM() { 'js/data/anki-note-builder.js', 'js/data/anki-util.js', 'js/dom/sandbox/css-style-applier.js', + 'js/display/sandbox/pronunciation-generator.js', 'js/display/sandbox/structured-content-generator.js', 'js/templates/sandbox/anki-template-renderer.js', 'js/templates/sandbox/template-renderer.js', @@ -234,6 +235,9 @@ async function getRenderResults(dictionaryEntries, type, mode, template, AnkiNot compactTags: false }); if (!write) { + for (const error of errors) { + console.error(error); + } assert.strictEqual(errors.length, 0); } results.push(noteFields); -- cgit v1.2.3