test(frontend): fix lint typing in UserMenu test link mock
This commit is contained in:
committed by
Abhimanyu Saharan
parent
d739e31196
commit
3dca0fa813
@@ -16,7 +16,15 @@ vi.mock("next/image", () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock("next/link", () => ({
|
vi.mock("next/link", () => ({
|
||||||
default: ({ children, href, ...rest }: any) => (
|
default: ({
|
||||||
|
children,
|
||||||
|
href,
|
||||||
|
...rest
|
||||||
|
}: {
|
||||||
|
children: React.ReactNode;
|
||||||
|
href?: string;
|
||||||
|
[key: string]: unknown;
|
||||||
|
}) => (
|
||||||
<a href={typeof href === "string" ? href : "#"} {...rest}>
|
<a href={typeof href === "string" ? href : "#"} {...rest}>
|
||||||
{children}
|
{children}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user