Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
style(patients): fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Dec 17, 2019
1 parent c2ef440 commit 66c1f00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions src/__tests__/patients/new/NewPatientForm.test.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
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()

describe('New Patient Form', () => {
describe('layout', () => {
it('should have a "Basic Information" header', () => {
// eslint-disable-next-line import/no-unresolved
const wrapper = shallow(<NewPatientForm onCancel={onCancel} onSave={onSave} />)
const basicInformationHeader = wrapper.find('h3').at(0)

Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/patients/patients-slice.test.ts
Original file line number Diff line number Diff line change
@@ -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(() => {
Expand Down

0 comments on commit 66c1f00

Please sign in to comment.