Update titles type

This commit is contained in:
toasted-nutbread 2020-02-22 14:42:05 -05:00
parent 54bb702b84
commit 418e7f9968

View File

@ -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();