diff --git a/app/components/Views/confirmations/Confirm/Confirm.test.tsx b/app/components/Views/confirmations/Confirm/Confirm.test.tsx index 3b0f7cec116..6aba8da4231 100644 --- a/app/components/Views/confirmations/Confirm/Confirm.test.tsx +++ b/app/components/Views/confirmations/Confirm/Confirm.test.tsx @@ -8,6 +8,11 @@ import { } from '../../../../util/test/confirm-data-helpers'; import Confirm from './index'; +jest.mock('../../../../util/address', () => ({ + ...jest.requireActual('../../../../util/address'), + getAddressAccountType: (str: string) => str, +})); + jest.mock('react-native-gzip', () => ({ deflate: (str: string) => str, })); @@ -51,7 +56,7 @@ describe('Confirm', () => { expect(queryByText('This is a deceptive request')).toBeNull(); }); - it('should render blockaid banner is confirmation has blockaid error response', async () => { + it('should render blockaid banner if confirmation has blockaid error response', async () => { const typedSignApproval = typedSignV1ConfirmationState.engine.backgroundState.ApprovalController .pendingApprovals['7e62bcb1-a4e9-11ef-9b51-ddf21c91a998']; diff --git a/app/components/Views/confirmations/components/Confirm/Footer/Footer.test.tsx b/app/components/Views/confirmations/components/Confirm/Footer/Footer.test.tsx index 4139a44c779..da6d2c945d3 100644 --- a/app/components/Views/confirmations/components/Confirm/Footer/Footer.test.tsx +++ b/app/components/Views/confirmations/components/Confirm/Footer/Footer.test.tsx @@ -7,17 +7,21 @@ import { fireEvent } from '@testing-library/react-native'; const mockConfirmSpy = jest.fn(); const mockRejectSpy = jest.fn(); -jest.mock('../../../hooks/useApprovalRequest', () => () => ({ - onConfirm: mockConfirmSpy, - onReject: mockRejectSpy, +jest.mock('../../../hooks/useConfirmActions', () => ({ + useConfirmActions: () => ({ + onConfirm: mockConfirmSpy, + onReject: mockRejectSpy, + }), })); describe('Footer', () => { - it('should match snapshot for personal sign', async () => { - const container = renderWithProvider(