summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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()
}
];