Skip to content

Commit

Permalink
feat: removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed May 17, 2023
1 parent d7b9f66 commit 5d7ab07
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import { isDesktop, isMobile } from '@deriv/shared';
import IdvDocumentSubmit from '../idv-document-submit';
import { FormikValues } from 'formik';

jest.mock('react-router');
jest.mock('Assets/ic-document-submit-icon.svg', () => jest.fn(() => 'DocumentSubmitLogo'));
Expand Down Expand Up @@ -123,7 +122,7 @@ describe('<IdvDocumentSubmit/>', () => {
expect(document_number_input).toBeDisabled();

fireEvent.change(document_type_input, { target: { value: 'Test document 2 name' } });
expect(document_number_input).not.toBeDisabled();
expect(document_number_input).toBeEnabled();
expect(screen.queryByText(/please enter the correct format/i)).not.toBeInTheDocument();

fireEvent.blur(document_number_input);
Expand All @@ -137,7 +136,7 @@ describe('<IdvDocumentSubmit/>', () => {
await waitFor(() => {
expect(screen.queryByText(/please enter the correct format/i)).not.toBeInTheDocument();
expect(screen.queryByText(/please enter a valid ID number/i)).not.toBeInTheDocument();
expect(verifyBtn).not.toBeDisabled();
expect(verifyBtn).toBeEnabled();
});

fireEvent.click(verifyBtn);
Expand Down

0 comments on commit 5d7ab07

Please sign in to comment.