diff --git a/test/misc.test.ts b/test/misc.test.ts index cefdb5a0e9f..a77ac1f5c91 100644 --- a/test/misc.test.ts +++ b/test/misc.test.ts @@ -35,21 +35,6 @@ describe("Test misc", () => { expect(spy).toHaveBeenCalled(); }); - it.skip("test apifetch mock async", async () => { - const spy = vi.fn(); - await apiFetch("https://localhost:8080/account/info") - .then(response => { - expect(response.status).toBe(200); - expect(response.ok).toBe(true); - return response.json(); - }) - .then(data => { - spy(); // Call the spy function - expect(data).toEqual({ username: "greenlamp", lastSessionSlot: 0 }); - }); - expect(spy).toHaveBeenCalled(); - }); - it("test fetch mock sync", async () => { const response = await fetch("https://localhost:8080/account/info"); const data = await response.json(); diff --git a/test/test-utils/game-manager.ts b/test/test-utils/game-manager.ts index 034666a3537..6a710cb4917 100644 --- a/test/test-utils/game-manager.ts +++ b/test/test-utils/game-manager.ts @@ -114,7 +114,6 @@ export class GameManager { this.modifiers = new ModifierHelper(this); this.field = new FieldHelper(this); - this.override.sanitizeOverrides(); this.initDefaultOverrides(); // TODO: remove `any` assertion