Skip to content

Commit

Permalink
fix: update cookie expiration time in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomast1337 committed Jan 1, 2025
1 parent 2ec8276 commit 1ae51df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/auth/auth.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('AuthService', () => {
},
{
provide: 'COOKIE_EXPIRES_IN',
useValue: '1d',
useValue: '3600',
},
{
provide: 'JWT_SECRET',
Expand Down Expand Up @@ -373,15 +373,15 @@ describe('AuthService', () => {

expect(res.cookie).toHaveBeenCalledWith('token', 'access-token', {
domain: '.test.com',
maxAge: 1,
maxAge: 3600000,
});

expect(res.cookie).toHaveBeenCalledWith(
'refresh_token',
'refresh-token',
{
domain: '.test.com',
maxAge: 1,
maxAge: 3600000,
},
);

Expand Down

0 comments on commit 1ae51df

Please sign in to comment.