Skip to content

Commit f18f4ce

Browse files
committed
update
1 parent 1be9dd6 commit f18f4ce

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ui/pages/confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonInfo.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ jest.mock('../../../../../store/controller-actions/bridge-controller', () => ({
3131

3232
const mockUseDappSwapComparisonLatencyMetricsResponse = {
3333
requestDetectionLatency: '1200',
34-
swapComparisonLatency: '1500',
3534
updateRequestDetectionLatency: jest.fn(),
36-
updateSwapComparisonLatency: jest.fn(),
35+
updateSwapComparisonLatency: jest.fn().mockReturnValue('1500'),
3736
};
3837

3938
jest.mock('./useDappSwapComparisonLatencyMetrics', () => ({

ui/pages/confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonInfo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export function useDappSwapComparisonInfo() {
7474
transactionData,
7575
txParams?.from as string,
7676
);
77-
console.log('-----------inside getDataFromSwap', result);
7877
updateRequestDetectionLatency();
7978
return result;
8079
} catch (error) {

0 commit comments

Comments
 (0)