update test

pull/12056/head
Dmytro Hryshyn 2023-10-24 16:54:59 +03:00 committed by DmytroHryshyn
parent b19827ccd2
commit 3cd45f95e9
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,12 @@ import { vi } from "vitest";
import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader } from "./Dialog";
vi.mock("@calcom/lib/hooks/useCompatSearchParams", () => ({
useCompatSearchParams() {
return new URLSearchParams();
},
}));
vi.mock("next/navigation", () => ({
usePathname() {
return "";

View File

@ -4,6 +4,12 @@ import { vi } from "vitest";
import WizardForm from "./WizardForm";
vi.mock("@calcom/lib/hooks/useCompatSearchParams", () => ({
useCompatSearchParams() {
return { get: vi.fn().mockReturnValue(currentStepNavigation) };
},
}));
vi.mock("next/navigation", () => ({
useRouter() {
return { replace: vi.fn() };