summaryrefslogtreecommitdiff
path: root/test/test-options-util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-26 19:50:54 -0400
committerGitHub <noreply@github.com>2021-03-26 19:50:54 -0400
commit90f7d5ba07340413aa7e43c3a0cc038690b32db3 (patch)
treeb3c57f9240de2e3a86cbc8dba5fe93d71e4067ae /test/test-options-util.js
parent482dd8c8d8339d29c9e7a202cbf4c54bf7cf291d (diff)
Add part of speech info (#1561)
* Add part of speech info to headwords * Expose parts of speech to Anki template rendering * Expose parts of speech * Update pitch accent categories * Update docs * Add part-of-speech * Update options and tests * Update markers * Update test data
Diffstat (limited to 'test/test-options-util.js')
-rw-r--r--test/test-options-util.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test-options-util.js b/test/test-options-util.js
index 16faf512..15f1481c 100644
--- a/test/test-options-util.js
+++ b/test/test-options-util.js
@@ -625,6 +625,7 @@ async function testFieldTemplatesUpdate(extDir) {
const update4 = loadDataFile('data/templates/anki-field-templates-upgrade-v4.handlebars');
const update6 = loadDataFile('data/templates/anki-field-templates-upgrade-v6.handlebars');
const update8 = loadDataFile('data/templates/anki-field-templates-upgrade-v8.handlebars');
+ const update10 = loadDataFile('data/templates/anki-field-templates-upgrade-v10.handlebars');
const data = [
// Standard format
@@ -645,6 +646,7 @@ ${update2}
${update4}
${update6}
${update8}
+${update10}
{{~> (lookup . "marker") ~}}`.trimStart()
},
// Non-standard marker format
@@ -665,7 +667,8 @@ ${update8}
${update2}
${update4}
${update6}
-${update8}`.trimStart()
+${update8}
+${update10}`.trimStart()
},
// Empty test
{
@@ -677,6 +680,7 @@ ${update2}
${update4}
${update6}
${update8}
+${update10}
{{~> (lookup . "marker") ~}}`.trimStart()
},
// Definition tags update
@@ -750,6 +754,7 @@ ${update2}
${update4}
${update6}
${update8}
+${update10}
{{~> (lookup . "marker") ~}}
`.trimStart()
},
@@ -890,6 +895,7 @@ ${update8}
{{/inline}}
${update8}
+${update10}
{{~> (lookup . "marker") ~}}`.trimStart()
}
];