Skip to content

Commit d37a45f

Browse files
committed
Fix unit tests
1 parent 2041a9f commit d37a45f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/components/Views/confirmations/components/info/transfer/transfer.test.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jest.mock('../../../../../../core/Engine', () => ({
1616
startPolling: jest.fn(),
1717
stopPollingByPollingToken: jest.fn(),
1818
},
19+
TransactionController: {
20+
updateTransaction: jest.fn(),
21+
getNonceLock: jest
22+
.fn()
23+
.mockResolvedValue({ nextNonce: 2, releaseLock: jest.fn() }),
24+
},
1925
},
2026
}));
2127

app/components/Views/confirmations/components/rows/transactions/advanced-details-row/advanced-details-row.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jest.mock('../../../../../../UI/Name', () => ({
1414
}));
1515

1616
jest.mock('../../../../legacy/SendFlow/components/CustomNonceModal', () => 'CustomNonceModal');
17-
jest.mock('../../../UI/expandable-section', () => 'ExpandableSection');
17+
jest.mock('../../../../UI/expandable', () => 'Expandable');
1818
jest.mock('../../../../../../../component-library/components/Texts/Text', () => ({
1919
TextColor: { Primary: 'primary' },
2020
TextVariant: { BodyMD: 'bodyMD' },

0 commit comments

Comments
 (0)