From 781c74d800dba6c403a273baab13d5ee935fd925 Mon Sep 17 00:00:00 2001 From: Ryan Barlow <7389646+ryanbarlow97@users.noreply.github.com> Date: Mon, 25 May 2026 21:29:56 +0100 Subject: [PATCH] fix test --- tests/client/ClanTagInput.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/client/ClanTagInput.test.ts b/tests/client/ClanTagInput.test.ts index 3672e34c9..388e6946e 100644 --- a/tests/client/ClanTagInput.test.ts +++ b/tests/client/ClanTagInput.test.ts @@ -120,7 +120,7 @@ describe("ClanTagInput async ownership check", () => { expect(localStorage.getItem("clanTag")).toBe("FIC"); }); - it("fails open: keeps the tag when existence check returns null", async () => { + it("fails closed: rejects the tag when existence check is inconclusive", async () => { vi.mocked(getUserMe).mockResolvedValue(false); vi.mocked(fetchClanExists).mockResolvedValue(null); @@ -132,7 +132,7 @@ describe("ClanTagInput async ownership check", () => { await flushPromises(); await flushPromises(); - expect(input.isValid()).toBe(true); + expect(input.isValid()).toBe(false); }); it("discards stale async results when the tag has changed", async () => {