test: update auth callback assertions to verify redirect status and location header
CI / build (pull_request) Successful in 22s

This commit is contained in:
ramvignesh-b
2026-05-12 04:14:26 +05:30
parent 0be9a05c09
commit eac5aa7056
+2 -3
View File
@@ -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();
});