From 0ae4e4c765bd4e6ef2c099ae71fb4d867ef6f50a Mon Sep 17 00:00:00 2001 From: Silas Boyd-Wickizer Date: Fri, 11 Aug 2023 11:13:14 -0700 Subject: [PATCH] test fixes --- src/swap/saga.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/swap/saga.test.ts b/src/swap/saga.test.ts index 75d6a979092..fe8203c80e5 100644 --- a/src/swap/saga.test.ts +++ b/src/swap/saga.test.ts @@ -40,6 +40,7 @@ jest.mock('src/transactions/send', () => ({ const mockSwapTransaction = { buyAmount: '10000000000000000', + sellAmount: '10000000000000000', buyTokenAddress: mockCeloAddress, sellTokenAddress: mockCeurAddress, price: '1', @@ -89,6 +90,7 @@ describe(swapSubmitSaga, () => { [ { ...mockTokenBalances[mockCeurAddress], + usdPrice: new BigNumber('1'), balance: new BigNumber('10'), }, ], @@ -129,6 +131,8 @@ describe(swapSubmitSaga, () => { swapExecuteTxId: 'a uuid', quoteToUserConfirmsSwapElapsedTimeInMs: 2500, quoteToTransactionElapsedTimeInMs: 10000, + estimatedBuyTokenUsdValue: undefined, + estimatedSellTokenUsdValue: 0.01, }) }) @@ -159,6 +163,8 @@ describe(swapSubmitSaga, () => { swapExecuteTxId: 'a uuid', quoteToUserConfirmsSwapElapsedTimeInMs: 30000, quoteToTransactionElapsedTimeInMs: undefined, + estimatedBuyTokenUsdValue: undefined, + estimatedSellTokenUsdValue: 0.01, }) })