diff --git a/frontend/frontend-sdk/tests/lib/client/HttpClient.spec.ts b/frontend/frontend-sdk/tests/lib/client/HttpClient.spec.ts index ec8c00472..b4d13c642 100644 --- a/frontend/frontend-sdk/tests/lib/client/HttpClient.spec.ts +++ b/frontend/frontend-sdk/tests/lib/client/HttpClient.spec.ts @@ -49,7 +49,7 @@ describe("httpClient._fetch()", () => { "Content-Type", "application/json", ); - expect(xhr.setRequestHeader).toHaveBeenCalledTimes(2); + expect(xhr.setRequestHeader).toHaveBeenCalledTimes(3); expect(xhr.open).toHaveBeenNthCalledWith( 1, "GET", @@ -73,7 +73,7 @@ describe("httpClient._fetch()", () => { "Authorization", `Bearer ${jwt}`, ); - expect(xhr.setRequestHeader).toHaveBeenCalledTimes(3); + expect(xhr.setRequestHeader).toHaveBeenCalledTimes(4); }); it("should handle onerror", async () => {