From 66c1f00a704a77f17b83d7f957ac56814cc14150 Mon Sep 17 00:00:00 2001 From: Jack Meyer Date: Mon, 16 Dec 2019 22:35:48 -0600 Subject: [PATCH] style(patients): fix eslint issues --- .../patients/new/NewPatientForm.test.tsx | 17 ++++++++--------- src/__tests__/patients/patients-slice.test.ts | 4 ++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/__tests__/patients/new/NewPatientForm.test.tsx b/src/__tests__/patients/new/NewPatientForm.test.tsx index 240a6beb87..8a70f78a8a 100644 --- a/src/__tests__/patients/new/NewPatientForm.test.tsx +++ b/src/__tests__/patients/new/NewPatientForm.test.tsx @@ -1,15 +1,15 @@ import '../../../__mocks__/matchMediaMock' import React from 'react' -import NewPatientForm from "../../../patients/new/NewPatientForm" import { shallow, mount } from 'enzyme' -import TextInputWithLabelFormGroup from "../../../components/input/TextInputWithLabelFormGroup" -import SelectWithLabelFormGroup from "../../../components/input/SelectWithLableFormGroup"; -import DatePickerWithLabelFormGroup from "../../../components/input/DatePickerWithLabelFormGroup"; -import TextFieldWithLabelFormGroup from "../../../components/input/TextFieldWithLabelFormGroup"; -import {Button} from "@hospitalrun/components"; +import { Button } from '@hospitalrun/components' import { render, act, fireEvent } from '@testing-library/react' -import Patient from "../../../model/Patient"; -import Name from "../../../model/Name"; +import NewPatientForm from '../../../patients/new/NewPatientForm' +import TextInputWithLabelFormGroup from '../../../components/input/TextInputWithLabelFormGroup' +import SelectWithLabelFormGroup from '../../../components/input/SelectWithLableFormGroup' +import DatePickerWithLabelFormGroup from '../../../components/input/DatePickerWithLabelFormGroup' +import TextFieldWithLabelFormGroup from '../../../components/input/TextFieldWithLabelFormGroup' +import Patient from '../../../model/Patient' +import Name from '../../../model/Name' const onSave = jest.fn() const onCancel = jest.fn() @@ -17,7 +17,6 @@ const onCancel = jest.fn() describe('New Patient Form', () => { describe('layout', () => { it('should have a "Basic Information" header', () => { - // eslint-disable-next-line import/no-unresolved const wrapper = shallow() const basicInformationHeader = wrapper.find('h3').at(0) diff --git a/src/__tests__/patients/patients-slice.test.ts b/src/__tests__/patients/patients-slice.test.ts index edbbd7a0b9..a8950369e6 100644 --- a/src/__tests__/patients/patients-slice.test.ts +++ b/src/__tests__/patients/patients-slice.test.ts @@ -1,9 +1,9 @@ -import * as patientsSlice from '../../patients/patients-slice' import { AnyAction } from 'redux' import { createMemoryHistory } from 'history' +import { mocked } from 'ts-jest/utils' +import * as patientsSlice from '../../patients/patients-slice' import Patient from '../../model/Patient' import PatientRepository from '../../clients/db/PatientRepository' -import { mocked } from 'ts-jest/utils' describe('patients slice', () => { beforeEach(() => {