Skip to content

Commit

Permalink
fix timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Oct 18, 2023
1 parent 00ff69c commit 03d71f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cookies/test/response-cookies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ it('reflect .set all options attributes into `set-cookie`', async () => {
path: 'custom-path',
secure: true,
sameSite: 'strict',
expires: new Date(2100, 0, 1, 12, 0, 0),
expires: new Date(0),
httpOnly: true,
maxAge: 0,
priority: 'high',
})
const cookiesInHeaders = headers.getSetCookie()
expect(cookiesInHeaders).toEqual([
'first-name=first-value; Path=custom-path; Expires=Fri, 01 Jan 2100 11:00:00 GMT; Max-Age=0; Domain=custom-domain; Secure; HttpOnly; SameSite=strict; Priority=high',
'first-name=first-value; Path=custom-path; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Domain=custom-domain; Secure; HttpOnly; SameSite=strict; Priority=high',
])
})

Expand Down

0 comments on commit 03d71f0

Please sign in to comment.