Skip to content

Commit 2099c3d

Browse files
committed
Fix unit tests
1 parent a487a0d commit 2099c3d

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
@@ -19,6 +19,12 @@ jest.mock('../../../../../../core/Engine', () => ({
1919
TokenListController: {
2020
fetchTokenList: jest.fn(),
2121
},
22+
TransactionController: {
23+
updateTransaction: jest.fn(),
24+
getNonceLock: jest
25+
.fn()
26+
.mockResolvedValue({ nextNonce: 2, releaseLock: jest.fn() }),
27+
},
2228
},
2329
}));
2430

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)