From d7aaab685ee23ebcd60b69211b02f6a66f57fa17 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 19 Jul 2020 22:05:37 -0400 Subject: Dev dependencies updates (#679) * Update eslint to 7.5.0 * Update eslint-plugin-no-unsanitized to 3.1.2 * Update fake-indexeddb to 3.1.1 * Rename DictionaryImporter.import to .importDictionary Conflicts with o-unsanitized/method --- test/test-database.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/test-database.js b/test/test-database.js index 5230ed92..3a090c1d 100644 --- a/test/test-database.js +++ b/test/test-database.js @@ -221,7 +221,7 @@ async function testDatabase1() { // Import data let progressEvent = false; - const {result, errors} = await dictionaryImporter.import( + const {result, errors} = await dictionaryImporter.importDictionary( dictionaryDatabase, testDictionarySource, {prefixWildcardsSupported: true}, @@ -875,17 +875,17 @@ async function testDatabase2() { await assert.rejects(async () => await dictionaryDatabase.findTagForTitle('tag', title)); await assert.rejects(async () => await dictionaryDatabase.getDictionaryInfo()); await assert.rejects(async () => await dictionaryDatabase.getDictionaryCounts(titles, true)); - await assert.rejects(async () => await dictionaryImporter.import(dictionaryDatabase, testDictionarySource, {}, () => {})); + await assert.rejects(async () => await dictionaryImporter.importDictionary(dictionaryDatabase, testDictionarySource, {}, () => {})); await dictionaryDatabase.prepare(); // Error: already prepared await assert.rejects(async () => await dictionaryDatabase.prepare()); - await dictionaryImporter.import(dictionaryDatabase, testDictionarySource, {}, () => {}); + await dictionaryImporter.importDictionary(dictionaryDatabase, testDictionarySource, {}, () => {}); // Error: dictionary already imported - await assert.rejects(async () => await dictionaryImporter.import(dictionaryDatabase, testDictionarySource, {}, () => {})); + await assert.rejects(async () => await dictionaryImporter.importDictionary(dictionaryDatabase, testDictionarySource, {}, () => {})); await dictionaryDatabase.close(); } @@ -912,7 +912,7 @@ async function testDatabase3() { let error = null; try { - await dictionaryImporter.import(dictionaryDatabase, testDictionarySource, {}, () => {}); + await dictionaryImporter.importDictionary(dictionaryDatabase, testDictionarySource, {}, () => {}); } catch (e) { error = e; } -- cgit v1.2.3