From 8702da15759bfb0d11af28a3c59cf5c50dbeeb97 Mon Sep 17 00:00:00 2001 From: maciek Date: Tue, 28 Feb 2023 14:34:06 +0100 Subject: [PATCH] chore: add handle wrong chainId in withdrawal - add unit test --- .../lib/use-ethereum-withdraw-approvals-manager.spec.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/web3/src/lib/use-ethereum-withdraw-approvals-manager.spec.tsx b/libs/web3/src/lib/use-ethereum-withdraw-approvals-manager.spec.tsx index 6280b2fa7..0ef87e8e8 100644 --- a/libs/web3/src/lib/use-ethereum-withdraw-approvals-manager.spec.tsx +++ b/libs/web3/src/lib/use-ethereum-withdraw-approvals-manager.spec.tsx @@ -69,7 +69,7 @@ const mockUseEthereumConfig = { collateral_bridge_contract: { address: 'address', }, - chain_id: '111111' + chain_id: '111111', }; jest.mock('./use-ethereum-config', () => ({ @@ -315,6 +315,8 @@ describe('useEthWithdrawApprovalsManager', () => { }); render(); expect(update.mock.calls[0][1].status).toEqual(ApprovalStatus.Error); - expect(update.mock.calls[0][1].message).toEqual('You are on the wrong network'); - }) + expect(update.mock.calls[0][1].message).toEqual( + 'You are on the wrong network' + ); + }); });