From db52a08d9990ca0c1c4bf20d0b19f3ea6a3cc64a Mon Sep 17 00:00:00 2001 From: Marco Link Date: Thu, 22 Jun 2023 12:16:46 +0200 Subject: [PATCH] fix: header object always transforms to string --- test/unit/rate-limit-test.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/rate-limit-test.spec.ts b/test/unit/rate-limit-test.spec.ts index fd603f8..c76bdee 100644 --- a/test/unit/rate-limit-test.spec.ts +++ b/test/unit/rate-limit-test.spec.ts @@ -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')