Skip to content

Commit

Permalink
fix: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Feb 6, 2025
1 parent cef7964 commit 9ba727a
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ describe('useSendOnChainCancellation() + useGetOnChainCancellation()', () => {
ethFlowInvalidationMock.mockResolvedValue({ hash: ethFlowCancellationTxHash })

mockUseEthFlowContract.mockReturnValue({
contract: {
estimateGas: {
invalidateOrder: () => Promise.resolve(BigNumber.from(100)),
},
invalidateOrder: ethFlowInvalidationMock,
} as any,
chainId,
error: null,
loading: false,
result: {
contract: {
estimateGas: {
invalidateOrder: () => Promise.resolve(BigNumber.from(100)),
},
invalidateOrder: ethFlowInvalidationMock,
} as any,
chainId,
error: null,
loading: false,
},
useNewEthFlowContracts: false,
})

settlementInvalidationMock.mockResolvedValue({ hash: settlementCancellationTxHash })
Expand Down

0 comments on commit 9ba727a

Please sign in to comment.