summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-17 21:21:30 +0100
committerpraschke <stel@comfy.monster>2023-10-17 21:21:30 +0100
commit0506cfbee5443635ebd6ac79054b85f171775039 (patch)
treee81dad47651dc4f1c605b603a2f0de19547cad13 /test
parentc3be9af7b6f00dad7107fcdae60a8004cc81936a (diff)
initial handlebars patch
Diffstat (limited to 'test')
-rw-r--r--test/test-options-util.js15
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()
}
];