Skip to content

Commit

Permalink
test: specify test location host
Browse files Browse the repository at this point in the history
  • Loading branch information
iamogbz committed Apr 30, 2024
1 parent 6f713c8 commit ae8d60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/hitCounter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ beforeEach(() => {
errorSpy.mockImplementation(() => undefined);
fetchSpy.mockResolvedValue(new Response());
Object.defineProperty(window, "location", {
value: { ...windowLocation },
value: { ...windowLocation, host: 'letters-from-the-abyss.com' },
writable: true,
});
window.localStorage.clear();
Expand Down

0 comments on commit ae8d60d

Please sign in to comment.