aboutsummaryrefslogtreecommitdiff
path: root/test/test-database.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-database.js')
-rw-r--r--test/test-database.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test-database.js b/test/test-database.js
index 4fb3805d..04ed8100 100644
--- a/test/test-database.js
+++ b/test/test-database.js
@@ -136,7 +136,9 @@ async function testDatabase1() {
const testDictionaryIndex = JSON.parse(await testDictionary.files['index.json'].async('string'));
const title = testDictionaryIndex.title;
- const titles = [title];
+ const titles = new Map([
+ [title, {priority: 0, allowSecondarySearches: false}]
+ ]);
// Setup iteration data
const iterations = [
@@ -815,7 +817,9 @@ async function testDatabase2() {
const testDictionaryIndex = JSON.parse(await testDictionary.files['index.json'].async('string'));
const title = testDictionaryIndex.title;
- const titles = [title];
+ const titles = new Map([
+ [title, {priority: 0, allowSecondarySearches: false}]
+ ]);
// Setup database
const database = new Database();