Skip to content

Commit ce406af

Browse files
committed
This was a wrong test thrown off by salesforce/tough-cookie#240
1 parent fab6609 commit ce406af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/auth0-session/transient-store.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('TransientStore', () => {
8383
expect(cookie?.secure).toBeFalsy();
8484
});
8585

86-
it('should set SameSite=None, Secure=False for fallback cookie by default for http', async () => {
86+
it('should not set SameSite and set Secure=False for fallback cookie by default for http', async () => {
8787
const baseURL: string = await setup(
8888
defaultConfig,
8989
(req: NodeRequest, res: NodeResponse) => {
@@ -96,9 +96,8 @@ describe('TransientStore', () => {
9696
const { value } = await get(baseURL, '/', { cookieJar });
9797
const fallbackCookie = getCookie('_test_key', cookieJar, baseURL);
9898
expect(value).toEqual(expect.any(String));
99-
// TODO: figure out why this is sameSite 'none' (and why it's passing in main)
10099
expect(fallbackCookie).toMatchObject({
101-
sameSite: 'none',
100+
sameSite: undefined,
102101
secure: false,
103102
httpOnly: true
104103
});

0 commit comments

Comments
 (0)