Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
silasbw committed Aug 11, 2023
1 parent 881d3e8 commit 0ae4e4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/swap/saga.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jest.mock('src/transactions/send', () => ({

const mockSwapTransaction = {
buyAmount: '10000000000000000',
sellAmount: '10000000000000000',
buyTokenAddress: mockCeloAddress,
sellTokenAddress: mockCeurAddress,
price: '1',
Expand Down Expand Up @@ -89,6 +90,7 @@ describe(swapSubmitSaga, () => {
[
{
...mockTokenBalances[mockCeurAddress],
usdPrice: new BigNumber('1'),
balance: new BigNumber('10'),
},
],
Expand Down Expand Up @@ -129,6 +131,8 @@ describe(swapSubmitSaga, () => {
swapExecuteTxId: 'a uuid',
quoteToUserConfirmsSwapElapsedTimeInMs: 2500,
quoteToTransactionElapsedTimeInMs: 10000,
estimatedBuyTokenUsdValue: undefined,
estimatedSellTokenUsdValue: 0.01,
})
})

Expand Down Expand Up @@ -159,6 +163,8 @@ describe(swapSubmitSaga, () => {
swapExecuteTxId: 'a uuid',
quoteToUserConfirmsSwapElapsedTimeInMs: 30000,
quoteToTransactionElapsedTimeInMs: undefined,
estimatedBuyTokenUsdValue: undefined,
estimatedSellTokenUsdValue: 0.01,
})
})

Expand Down

0 comments on commit 0ae4e4c

Please sign in to comment.