Add missing path=/ to setCookieWithoutExpiration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,6 +82,15 @@ describe('cookieUtil', () => {
|
||||
expect(str).toContain('Secure');
|
||||
expect(str).toContain('SameSite=Lax');
|
||||
});
|
||||
|
||||
it('sets cookie with path=/', () => {
|
||||
setCookieWithoutExpiration('pathKey', 'pathVal');
|
||||
|
||||
const written = cookieSetter.mock.calls.find(
|
||||
(c) => c[0].startsWith('pathKey='),
|
||||
);
|
||||
expect(written[0]).toContain('path=/');
|
||||
});
|
||||
});
|
||||
|
||||
describe('deleteCookie', () => {
|
||||
|
||||
Reference in New Issue
Block a user