summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:42:05 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:43:06 -0500
commit418e7f9968ba8a6e302ec1e1b6d7dafe4b85fd97 (patch)
tree3116b3a9429077d77f16d374835ab768d8b0d9d4
parent54bb702b843ae9a312704f27e282bf340e8197fc (diff)
Update titles type
-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();