Skip to content

Commit c3f38a9

Browse files
committedNov 15, 2024
test: Fix test mocks for nextcloud-dialogs
Leftover from Jest -> Vitest migration Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent ca4be91 commit c3f38a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎__mocks__/@nextcloud/dialogs.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import { jest } from '@jest/globals'
6+
import { vi } from 'vitest'
77

8-
export const showMessage = jest.fn()
9-
export const showSuccess = jest.fn()
10-
export const showWarning = jest.fn()
11-
export const showInfo = jest.fn()
12-
export const showError = jest.fn()
13-
export const showUndo = jest.fn()
8+
export const showMessage = vi.fn()
9+
export const showSuccess = vi.fn()
10+
export const showWarning = vi.fn()
11+
export const showInfo = vi.fn()
12+
export const showError = vi.fn()
13+
export const showUndo = vi.fn()

0 commit comments

Comments
 (0)
Please sign in to comment.