Merge pull request #49299 from nextcloud/tests/fix-jest-leftover

test: Fix test mocks for nextcloud-dialogs
This commit is contained in:
Ferdinand Thiessen 2024-11-15 12:16:13 +01:00 committed by GitHub
commit 8fd7210aaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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()