Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
OGPoyraz committed Feb 17, 2025
1 parent 32dcc95 commit 76e0f91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/components/Views/confirmations/Confirm/Confirm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import renderWithProvider from '../../../../util/test/renderWithProvider';
import {
personalSignatureConfirmationState,
securityAlertResponse,
stakingDepositConfirmationState,
typedSignV1ConfirmationState,
} from '../../../../util/test/confirm-data-helpers';
// eslint-disable-next-line import/no-namespace
Expand Down Expand Up @@ -84,6 +85,13 @@ describe('Confirm', () => {
expect(queryByText('This is a deceptive request')).toBeNull();
});

it('renders correct information for staking deposit', async () => {
const { getByText } = renderWithProvider(<Confirm />, {
state: stakingDepositConfirmationState,
});
expect(getByText('0.0001 ETH')).toBeDefined();
});

it('renders blockaid banner if confirmation has blockaid error response', async () => {
const { getByText } = renderWithProvider(<Confirm />, {
state: {
Expand Down

0 comments on commit 76e0f91

Please sign in to comment.