diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-04 20:39:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 20:39:23 -0500 |
commit | 5b9d709d4087c7d2b4210319840f6fc7b454d3b1 (patch) | |
tree | 14e71808fc6b8e805c6e8e385cc7555414cdf08d /test/test-options-util.js | |
parent | 255c8b724e036d9d38e1dab4540974d11fc00bfa (diff) |
Conjugation marker (#988)
* Add {conjugation} marker
* Add info
* Add upgrade
* Update test
Diffstat (limited to 'test/test-options-util.js')
-rw-r--r-- | test/test-options-util.js | 8 |
1 files changed, 6 insertions, 2 deletions
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() } ]; |