From ba30900df9f1eadecdd1abfab990e17340cdc73c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 9 Feb 2026 23:05:42 +0000 Subject: [PATCH] Assert tokenized ws URL in runtime auth test Co-authored-by: Theo Browne --- apps/t3/src/runtimeApiServer.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index 20a16d45c6..db991ce193 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -169,6 +169,7 @@ describe("runtimeApiServer", () => { servers.push(server); const authorizedUrl = new URL(server.wsUrl); + expect(authorizedUrl.searchParams.get("token")).toBe("secret-token"); const unauthorizedUrl = `${authorizedUrl.origin}${authorizedUrl.pathname}`; const unauthorizedClient = new WebSocket(unauthorizedUrl); const unauthorizedClose = await withTimeout(