Skip to content

Commit

Permalink
fix: header object always transforms to string
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolink committed Jun 22, 2023
1 parent 1f65dc7 commit db52a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/rate-limit-test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ it('no retry when automatic handling flag is disabled', async () => {
await client.get('/rate-limit-me')
} catch (error: any) {
expect(error.response.status).toEqual(500)
expect(error.response.headers['x-contentful-request-id']).toEqual(3)
expect(error.response.headers['x-contentful-request-id']).toEqual('3')
expect(error.response.data).toEqual('Mocked 500 Error')
expect(logHandlerStub).toHaveBeenCalledTimes(0)
expect(error.message).toEqual('Request failed with status code 500')
Expand Down

0 comments on commit db52a08

Please sign in to comment.