]> source.dussan.org Git - nextcloud-server.git/commitdiff
test: Fix test mocks for nextcloud-dialogs tests/fix-jest-leftover 49299/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 15 Nov 2024 00:52:16 +0000 (01:52 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Fri, 15 Nov 2024 01:31:56 +0000 (02:31 +0100)
Leftover from Jest -> Vitest migration

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
__mocks__/@nextcloud/dialogs.ts

index e56e07f691fdcd395c649434743d1623c42a9569..547057355089b0c2f5481c54f14d5a27a13da440 100644 (file)
@@ -3,11 +3,11 @@
  * SPDX-License-Identifier: AGPL-3.0-or-later
  */
 
-import { jest } from '@jest/globals'
+import { vi } from 'vitest'
 
-export const showMessage = jest.fn()
-export const showSuccess = jest.fn()
-export const showWarning = jest.fn()
-export const showInfo = jest.fn()
-export const showError = jest.fn()
-export const showUndo = jest.fn()
+export const showMessage = vi.fn()
+export const showSuccess = vi.fn()
+export const showWarning = vi.fn()
+export const showInfo = vi.fn()
+export const showError = vi.fn()
+export const showUndo = vi.fn()