chore: add handle wrong chainId in withdrawal - add unit test

This commit is contained in:
maciek
2023-02-28 14:34:06 +01:00
parent d49e1eae1f
commit 8702da1575
@@ -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'
);
});
});