Skip to content

Commit

Permalink
test: add test case for issue 316
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil-codecov committed Aug 18, 2021
1 parent 5ad8bd3 commit 4fb31e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/helpers/web.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,19 @@ describe('Web Helpers', () => {
const testURL = `dummyURL`
expect(() => parsePOSTResults(testURL)).toThrowError('Incorrect number of urls when parsing results from POST: 1')
})

it('will return an object when parsing correctly and input has multiple linebreaks', () => {
const testURL = `dummyURL
OtherURL`
const expectedResults = { putURL: 'OtherURL', resultURL: 'dummyURL'}
expect(parsePOSTResults(testURL)).toEqual(expectedResults)
})
})
})

0 comments on commit 4fb31e3

Please sign in to comment.