Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Dec 10, 2024
1 parent 0c0f6b9 commit e958d90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/src/apis/coh3stats-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e958d90

Please sign in to comment.