From fc0d28fb845b43b670791adf01ece7e73649d229 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 15 Nov 2024 01:52:16 +0100 Subject: [PATCH] test: Fix test mocks for nextcloud-dialogs Leftover from Jest -> Vitest migration Signed-off-by: Ferdinand Thiessen --- __mocks__/@nextcloud/dialogs.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/__mocks__/@nextcloud/dialogs.ts b/__mocks__/@nextcloud/dialogs.ts index e56e07f691fdc..aab143c68076a 100644 --- a/__mocks__/@nextcloud/dialogs.ts +++ b/__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()