From b82c4c2698f0ec830d86f7cd1463d14baa416cb4 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 15 Nov 2024 18:08:44 +0100 Subject: [PATCH] fix: checking headers in test --- test/lib/apiClient.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/apiClient.spec.ts b/test/lib/apiClient.spec.ts index 7e2c8642..9e2ca73a 100644 --- a/test/lib/apiClient.spec.ts +++ b/test/lib/apiClient.spec.ts @@ -35,6 +35,6 @@ describe('T3ApiClient', () => { }) expect(requestOptions).toHaveProperty('baseURL', 'https://api.t3pwa.com') - expect(requestOptions).toHaveProperty('headers.Authorization', 'Token') + expect(requestOptions.headers.get('Authorization')).toBe('Token') }) })