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

Commit

Permalink
fix(incidentscvstests): fixed timezone test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
reidmeyer committed Sep 6, 2020
1 parent dc3c93e commit 02294e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/__tests__/incidents/list/ViewIncidentsTable.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Table, Dropdown } from '@hospitalrun/components'
import format from 'date-fns/format'
import { mount, ReactWrapper } from 'enzyme'
import { createMemoryHistory } from 'history'
import React from 'react'
Expand Down Expand Up @@ -112,9 +113,9 @@ describe('View Incidents Table', () => {
const expectedExportData = [
{
code: 'I-eClU6OdkR',
date: '2020-09-06 12:02 PM',
date: format(new Date(data[0].date), 'yyyy-MM-dd hh:mm a'),
reportedBy: 'some user',
reportedOn: '2020-09-06 12:02 PM',
reportedOn: format(new Date(data[0].reportedOn), 'yyyy-MM-dd hh:mm a'),
status: 'reported',
},
]
Expand Down

0 comments on commit 02294e6

Please sign in to comment.