From e958d903ef97be7537a40c83c45524b9060f6c0b Mon Sep 17 00:00:00 2001 From: Petr Vecera Date: Tue, 10 Dec 2024 21:53:28 +0100 Subject: [PATCH] Fix the tests --- __tests__/src/apis/coh3stats-api.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/src/apis/coh3stats-api.test.ts b/__tests__/src/apis/coh3stats-api.test.ts index b7e85f95..ef283eb9 100644 --- a/__tests__/src/apis/coh3stats-api.test.ts +++ b/__tests__/src/apis/coh3stats-api.test.ts @@ -214,11 +214,11 @@ describe("coh3stats-api", () => { .spyOn(global, "fetch") .mockImplementation(setupFetchStub({ playerMatches: fakeMatchesData })); - const response = await getPlayerRecentMatches(12345, "fake-ip"); + const response = await getPlayerRecentMatches(12345); expect(global.fetch).toBeCalledWith( - "https://us-east4-coh3-stats-prod.cloudfunctions.net/getPlayerMatchesHttp?relicId=12345", - { headers: { "X-Forwarded-For": "fake-ip", "c-edge-ip": "fake-ip" } }, + "https://cache.coh3stats.com/getPlayerMatchesHttp?relicId=12345", + {}, ); expect(response[0].id).toBe(2); expect(response[1].id).toBe(1);