diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-18 04:53:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 09:53:48 +0000 |
commit | d594d49ea81e1b546b6e39b7f85f098d9dc6fc48 (patch) | |
tree | 4834de07e2aec8bcde3cd165357415f67f4c5140 /test/anki-note-builder.test.js | |
parent | b249627434d3a94420ac4d98c3ce720767e57b43 (diff) |
Mock updates (#370)
* Move DictionaryImporterMediaLoader mock
* Move TemplateRendererProxy mock
* Simplify mock
* Remove ignore rule because it seems unused
Diffstat (limited to 'test/anki-note-builder.test.js')
-rw-r--r-- | test/anki-note-builder.test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/anki-note-builder.test.js b/test/anki-note-builder.test.js index 6901dde9..42ee2290 100644 --- a/test/anki-note-builder.test.js +++ b/test/anki-note-builder.test.js @@ -53,7 +53,7 @@ async function fetch(url2) { }; } vi.stubGlobal('fetch', fetch); -vi.mock('../ext/js/templates/template-renderer-proxy.js'); +vi.mock('../ext/js/templates/template-renderer-proxy.js', async () => await import('../test/mocks/template-renderer-proxy.js')); /** * @returns {Promise<TranslatorVM>} |