summaryrefslogtreecommitdiff
path: root/test/database.test.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-18 04:53:48 -0500
committerGitHub <noreply@github.com>2023-12-18 09:53:48 +0000
commitd594d49ea81e1b546b6e39b7f85f098d9dc6fc48 (patch)
tree4834de07e2aec8bcde3cd165357415f67f4c5140 /test/database.test.js
parentb249627434d3a94420ac4d98c3ce720767e57b43 (diff)
Mock updates (#370)
* Move DictionaryImporterMediaLoader mock * Move TemplateRendererProxy mock * Simplify mock * Remove ignore rule because it seems unused
Diffstat (limited to 'test/database.test.js')
-rw-r--r--test/database.test.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/database.test.js b/test/database.test.js
index e7774d95..2fdea99c 100644
--- a/test/database.test.js
+++ b/test/database.test.js
@@ -22,15 +22,13 @@ import path from 'path';
import {beforeEach, describe, expect, test, vi} from 'vitest';
import {createDictionaryArchive} from '../dev/util.js';
import {DictionaryDatabase} from '../ext/js/language/dictionary-database.js';
-import {DictionaryImporterMediaLoader} from '../ext/js/language/dictionary-importer-media-loader.js';
import {DictionaryImporter} from '../ext/js/language/dictionary-importer.js';
+import {DictionaryImporterMediaLoader} from './mocks/dictionary-importer-media-loader.js';
const dirname = path.dirname(fileURLToPath(import.meta.url));
vi.stubGlobal('IDBKeyRange', IDBKeyRange);
-vi.mock('../ext/js/language/dictionary-importer-media-loader.js');
-
/**
* @param {string} dictionary
* @param {string} [dictionaryName]