From ef1ade2a312c1b2c15f4365b38c73e0a9c49e9fb Mon Sep 17 00:00:00 2001 From: "fred.tran" Date: Tue, 26 Nov 2024 17:59:24 +0800 Subject: [PATCH] chore: fix /bridge utils test --- packages/bridge/src/__tests__/utils.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bridge/src/__tests__/utils.test.tsx b/packages/bridge/src/__tests__/utils.test.tsx index 19fa639..f2ed50d 100644 --- a/packages/bridge/src/__tests__/utils.test.tsx +++ b/packages/bridge/src/__tests__/utils.test.tsx @@ -10,8 +10,8 @@ vi.mock('@portkey/contracts', () => ({ getContractBasic: vi.fn(), })); // Mock components and dependencies -vi.mock('../ui', () => ({ - default: () =>
SignInModal Component
, +vi.mock('@ant-design/icons/lib/components/Context', () => ({ + default: (p: { children: React.ReactNode }) =>
{p.children}
, })); describe('getCaContractBase()', () => {