From d594d49ea81e1b546b6e39b7f85f098d9dc6fc48 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 18 Dec 2023 04:53:48 -0500 Subject: Mock updates (#370) * Move DictionaryImporterMediaLoader mock * Move TemplateRendererProxy mock * Simplify mock * Remove ignore rule because it seems unused --- dev/translator-vm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev') diff --git a/dev/translator-vm.js b/dev/translator-vm.js index 7fdda879..60777da0 100644 --- a/dev/translator-vm.js +++ b/dev/translator-vm.js @@ -28,7 +28,7 @@ import {JapaneseUtil} from '../ext/js/language/sandbox/japanese-util.js'; import {Translator} from '../ext/js/language/translator.js'; import {createDictionaryArchive} from './util.js'; -vi.mock('../ext/js/language/dictionary-importer-media-loader.js'); +vi.mock('../ext/js/language/dictionary-importer-media-loader.js', async () => await import('../test/mocks/dictionary-importer-media-loader.js')); const dirname = path.dirname(fileURLToPath(import.meta.url)); -- cgit v1.2.3