summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-07-19 22:05:37 -0400
committerGitHub <noreply@github.com>2020-07-19 22:05:37 -0400
commitd7aaab685ee23ebcd60b69211b02f6a66f57fa17 (patch)
treeca59e232aa7b1220d994887bf5caa383386917bc /test
parent8aa7bc1eec23ee7f347aacd63a21552762c4e2b8 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/test-database.js10
1 files changed, 5 insertions, 5 deletions
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;
}