From c3f38a99d5bc0972e34a0446be5116beb2785dde 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 e56e07f691f..54705735508 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() -- 2.39.5