Browse Source
test: Fix test mocks for nextcloud-dialogs
Leftover from Jest -> Vitest migration
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/49299/head
Ferdinand Thiessen
2 years ago
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
1 changed files with
7 additions and
7 deletions
-
__mocks__/@nextcloud/dialogs.ts
|
|
|
@ -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() |