Skip to content

Commit 1ae51df

Browse files
committed
fix: update cookie expiration time in tests
1 parent 2ec8276 commit 1ae51df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/auth/auth.service.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('AuthService', () => {
5151
},
5252
{
5353
provide: 'COOKIE_EXPIRES_IN',
54-
useValue: '1d',
54+
useValue: '3600',
5555
},
5656
{
5757
provide: 'JWT_SECRET',
@@ -373,15 +373,15 @@ describe('AuthService', () => {
373373

374374
expect(res.cookie).toHaveBeenCalledWith('token', 'access-token', {
375375
domain: '.test.com',
376-
maxAge: 1,
376+
maxAge: 3600000,
377377
});
378378

379379
expect(res.cookie).toHaveBeenCalledWith(
380380
'refresh_token',
381381
'refresh-token',
382382
{
383383
domain: '.test.com',
384-
maxAge: 1,
384+
maxAge: 3600000,
385385
},
386386
);
387387

0 commit comments

Comments
 (0)