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

Commit

Permalink
feat(incidentscsvtest): newline bug in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reidmeyer committed Sep 6, 2020
1 parent 02294e6 commit d577970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/shared/utils/DataHelpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ describe('Use Data Helpers util', () => {
status: 'reported',
},
]
const output = getCSV(input)
const output = getCSV(input).replace(/(\r\n|\n|\r)/gm, '')
const expectedOutput =
'"code","date","reportedBy","reportedOn","status"\r\n"I-eClU6OdkR","2020-09-06 12:02 PM","some user","2020-09-06 12:02 PM","reported"'
'"code","date","reportedBy","reportedOn","status""I-eClU6OdkR","2020-09-06 12:02 PM","some user","2020-09-06 12:02 PM","reported"'
expect(output).toMatch(expectedOutput)
})

Expand Down

0 comments on commit d577970

Please sign in to comment.