update test
parent
b19827ccd2
commit
3cd45f95e9
|
@ -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 "";
|
||||
|
|
|
@ -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() };
|
||||
|
|
Loading…
Reference in New Issue