diff options
Diffstat (limited to '__tests__/mock-window.js')
-rw-r--r-- | __tests__/mock-window.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/__tests__/mock-window.js b/__tests__/mock-window.js index 0daeea122d7..dbb689a4f2c 100644 --- a/__tests__/mock-window.js +++ b/__tests__/mock-window.js @@ -2,7 +2,12 @@ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ +import { beforeEach } from 'vitest' window.OC = { ...window.OC } window.OCA = { ...window.OCA } window.OCP = { ...window.OCP } + +beforeEach(() => { + window.location = new URL('http://nextcloud.local') +}) |