Skip to content

Commit 3d0232e

Browse files
fix failing tests due to using cookie maxage 0 for deletion (#2215)
1 parent 0665dd8 commit 3d0232e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/logout-strategy.flow.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ describe("Logout Strategy Flow Tests", () => {
464464
// Session cookie should be cleared
465465
const cookie = response.cookies.get("__session");
466466
expect(cookie?.value).toBe("");
467-
expect(cookie?.expires).toEqual(new Date("1970-01-01T00:00:00.000Z"));
467+
expect(cookie?.maxAge).toBe(0);
468468

469469
// Response should have cache control headers
470470
expect(response.headers.get("cache-control")).toContain("no-cache");

0 commit comments

Comments
 (0)