Skip to content

Commit 2606cbd

Browse files
committed
updated TransactionToast test
1 parent 3ed8727 commit 2606cbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/transaction/components/TransactionToast.test.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ describe('TransactionToast', () => {
8989
});
9090

9191
it('displays error message when present', () => {
92+
const setIsToastVisible = vi.fn();
9293
const mockErrorMessage = 'Transaction failed';
9394
(useTransactionContext as Mock).mockReturnValue({
9495
isLoading: false,
9596
isToastVisible: true,
9697
transactionHash: '',
9798
errorMessage: mockErrorMessage,
99+
setIsToastVisible,
98100
});
99101

100102
render(<TransactionToast>Error occurred</TransactionToast>);

0 commit comments

Comments
 (0)