From 57c3354d68dbc7394decb9b42f2cf08421c8b465 Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Sat, 17 Oct 2026 17:46:10 -0700 Subject: [PATCH] test: type the empty sign-in forms --- tests/unit/routes/login.test.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/unit/routes/login.test.ts b/tests/unit/routes/login.test.ts index 7fe9810a..b5e7d080 100644 --- a/tests/unit/routes/login.test.ts +++ b/tests/unit/routes/login.test.ts @@ -34,11 +34,14 @@ describe.for(HEADSCALE_VERSIONS)("API key sign-in on Headscale %s", (version) => }); describe("API key sign-in", () => { - test.for([{}, { api_key: "" }])("asks for a key when none is given (%o)", async (form) => { - await using app = await createTestApp(); + test.for>([{}, { api_key: "" }])( + "asks for a key when none is given (%o)", + async (form) => { + await using app = await createTestApp(); - expect(await signIn(app, form)).toEqual({ success: false, message: "Enter an API key." }); - }); + expect(await signIn(app, form)).toEqual({ success: false, message: "Enter an API key." }); + }, + ); test("explains when Headscale can't be reached", async () => { await using app = await createTestApp();