diff options
author | praschke <stel@comfy.monster> | 2023-10-17 21:21:30 +0100 |
---|---|---|
committer | praschke <stel@comfy.monster> | 2023-10-17 21:21:30 +0100 |
commit | 0506cfbee5443635ebd6ac79054b85f171775039 (patch) | |
tree | e81dad47651dc4f1c605b603a2f0de19547cad13 /test/test-options-util.js | |
parent | c3be9af7b6f00dad7107fcdae60a8004cc81936a (diff) |
initial handlebars patch
Diffstat (limited to 'test/test-options-util.js')
-rw-r--r-- | test/test-options-util.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/test-options-util.js b/test/test-options-util.js index 2be6b2f7..068367a2 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -622,7 +622,7 @@ function createOptionsUpdatedTestData1() { } ], profileCurrent: 0, - version: 20, + version: 21, global: { database: { prefixWildcardsSupported: false @@ -689,7 +689,8 @@ async function testFieldTemplatesUpdate(extDir) { {version: 8, changes: loadDataFile('data/templates/anki-field-templates-upgrade-v8.handlebars')}, {version: 10, changes: loadDataFile('data/templates/anki-field-templates-upgrade-v10.handlebars')}, {version: 12, changes: loadDataFile('data/templates/anki-field-templates-upgrade-v12.handlebars')}, - {version: 13, changes: loadDataFile('data/templates/anki-field-templates-upgrade-v13.handlebars')} + {version: 13, changes: loadDataFile('data/templates/anki-field-templates-upgrade-v13.handlebars')}, + {version: 21, changes: loadDataFile('data/templates/anki-field-templates-upgrade-v21.handlebars')} ]; const getUpdateAdditions = (startVersion, targetVersion) => { let value = ''; @@ -1215,6 +1216,16 @@ async function testFieldTemplatesUpdate(extDir) { <<<UPDATE-ADDITIONS>>> {{~> (lookup . "marker") ~}}`.trimStart() + }, + // block helper update + { + oldVersion: 20, + newVersion: 21, + old: ` +{{~> (lookup . "marker") ~}}`.trimStart(), + + expected: ` +{{~> (lookup . "marker") ~}}`.trimStart() } ]; |