Skip to content

Commit

Permalink
added BigInt test to get result
Browse files Browse the repository at this point in the history
  • Loading branch information
James Mosier committed Jan 22, 2020
1 parent a3e5c82 commit 7ad33e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/integration/bigint/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ const runTests = () => {
const res = await fetchViaHTTP(appPort, '/api/bigint', null, {
method: 'GET',
})

expect(res.status).toEqual(200)
})

it('should return the BigInt result text', async () => {
const resText = await fetchViaHTTP(appPort, '/api/bigint', null, {
method: 'GET',
}).then(res => res.ok && res.text())
expect(resText).toEqual('3')
})
}

describe('bigint API route support', () => {
Expand Down

0 comments on commit 7ad33e4

Please sign in to comment.