From 5b9d709d4087c7d2b4210319840f6fc7b454d3b1 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 4 Nov 2020 20:39:23 -0500 Subject: Conjugation marker (#988) * Add {conjugation} marker * Add info * Add upgrade * Update test --- test/test-options-util.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/test-options-util.js') diff --git a/test/test-options-util.js b/test/test-options-util.js index 00786dd6..c3ff4c8f 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -496,7 +496,7 @@ function createOptionsUpdatedTestData1() { } ], profileCurrent: 0, - version: 5, + version: 6, global: { database: { prefixWildcardsSupported: false @@ -554,6 +554,7 @@ async function testFieldTemplatesUpdate(extDir) { const loadDataFile = (fileName) => fs.readFileSync(path.join(extDir, fileName), {encoding: 'utf8'}); const update2 = loadDataFile('bg/data/anki-field-templates-upgrade-v2.handlebars'); const update4 = loadDataFile('bg/data/anki-field-templates-upgrade-v4.handlebars'); + const update6 = loadDataFile('bg/data/anki-field-templates-upgrade-v6.handlebars'); const data = [ // Standard format @@ -572,6 +573,7 @@ async function testFieldTemplatesUpdate(extDir) { ${update2} ${update4} +${update6} {{~> (lookup . "marker") ~}}`.trimStart() }, // Non-standard marker format @@ -590,7 +592,8 @@ ${update4} {{~> (lookup . "marker2") ~}} ${update2} -${update4}`.trimStart() +${update4} +${update6}`.trimStart() }, // Empty test { @@ -600,6 +603,7 @@ ${update4}`.trimStart() expected: ` ${update2} ${update4} +${update6} {{~> (lookup . "marker") ~}}`.trimStart() } ]; -- cgit v1.2.3