From eac5aa70568cf9cdf80c3cb9da8fa2a0821f049a Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Tue, 12 May 2026 04:14:26 +0530 Subject: [PATCH] test: update auth callback assertions to verify redirect status and location header --- tests/integration/auth.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/auth.test.ts b/tests/integration/auth.test.ts index f342b58..02b8026 100644 --- a/tests/integration/auth.test.ts +++ b/tests/integration/auth.test.ts @@ -50,9 +50,8 @@ describe("Auth Integration", () => { const res = await app.request("/auth/callback?state=trakt&code=temporary-auth-code"); - expect(res.status).toBe(200); - const html = await res.text(); - expect(html).toContain("trakt"); + expect(res.status).toBe(302); + expect(res.headers.get("Location")).toBe("/app/success?provider=trakt"); expect(redis.set).toHaveBeenCalled(); expect(fetchSpy).toHaveBeenCalled(); });