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

Commit

Permalink
remove reportedBy
Browse files Browse the repository at this point in the history
  • Loading branch information
jameszheng405 committed Mar 12, 2021
1 parent 969102a commit d0d4c35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/__tests__/incidents/hooks/useReportIncident.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('useReportIncident', () => {
const expectedCode = '123456'
const expectedDate = new Date(Date.now())
const expectedStatus = 'reported'
const expectedReportedBy = 'some user'
Date.now = jest.fn().mockReturnValue(expectedDate)

const givenIncidentRequest = {
Expand All @@ -34,7 +33,6 @@ describe('useReportIncident', () => {
code: `I-${expectedCode}`,
reportedOn: expectedDate.toISOString(),
status: expectedStatus,
reportedBy: expectedReportedBy,
} as Incident
jest.spyOn(shortid, 'generate').mockReturnValue(expectedCode)
jest.spyOn(IncidentRepository, 'save').mockResolvedValue(expectedIncident)
Expand Down

0 comments on commit d0d4c35

Please sign in to comment.