diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-22 14:50:21 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-22 14:50:21 -0500 | 
| commit | f8f03f3af0ab031cc58bf5ad3f782c8d45137430 (patch) | |
| tree | 3116b3a9429077d77f16d374835ab768d8b0d9d4 /test | |
| parent | f3c4b0e1e14cbdfb86c692e89144c762801b2339 (diff) | |
| parent | 418e7f9968ba8a6e302ec1e1b6d7dafe4b85fd97 (diff) | |
Merge pull request #362 from toasted-nutbread/more-type-refactoring
More type refactoring
Diffstat (limited to 'test')
| -rw-r--r-- | test/test-database.js | 8 | 
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(); |