Skip to content

Commit

Permalink
test: Fix test mocks for nextcloud-dialogs
Browse files Browse the repository at this point in the history
Leftover from Jest -> Vitest migration

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 15, 2024
1 parent ca4be91 commit fc0d28f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions __mocks__/@nextcloud/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit fc0d28f

Please sign in to comment.