test: update auth callback assertions to verify redirect status and location header
CI / build (pull_request) Successful in 22s
CI / build (pull_request) Successful in 22s
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user