mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
test: Mock _oc_webroot for frontend unit tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
a759182e90
commit
9e8effe3c7
1 changed files with 3 additions and 0 deletions
|
|
@ -27,3 +27,6 @@ import 'jest-location-mock'
|
|||
|
||||
// Mock `window.fetch` with Jest
|
||||
import 'jest-fetch-mock'
|
||||
|
||||
// Mock webroot to be empty
|
||||
(window as unknown as Record<string, unknown>)._oc_webroot = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue