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

Commit

Permalink
fix(test): incorrect date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
nobrayner committed Dec 31, 2020
1 parent 059bac4 commit f12f344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/patients/care-goals/CareGoalForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('Care Goal Form', () => {
expect(screen.getByText(/patient.careGoal.startDate/i)).toBeInTheDocument()
const startDatePicker = screen.getAllByRole('textbox')[4]
expect(startDatePicker).toBeInTheDocument()
expect(startDatePicker).toHaveValue(format(startDate, 'MM/d/y'))
expect(startDatePicker).toHaveValue(format(startDate, 'MM/dd/y'))
})

it('should call onChange handler when start date change', () => {
Expand All @@ -172,7 +172,7 @@ describe('Care Goal Form', () => {
expect(screen.getByText(/patient.careGoal.dueDate/i)).toBeInTheDocument()
const dueDatePicker = screen.getAllByRole('textbox')[5]
expect(dueDatePicker).toBeInTheDocument()
expect(dueDatePicker).toHaveValue(format(dueDate, 'MM/d/y'))
expect(dueDatePicker).toHaveValue(format(dueDate, 'MM/dd/y'))
})

it('should call onChange handler when due date changes', () => {
Expand Down

0 comments on commit f12f344

Please sign in to comment.