1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

Fix immich-jwt test

This commit is contained in:
Alex Tran 2023-01-21 23:10:29 -06:00
parent efe204fef8
commit 182ee3c0da
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A

View File

@ -51,7 +51,7 @@ describe('ImmichJwtService', () => {
const dto = { accessToken: 'test-user@immich.com', userId: 'test-user' };
const cookies = sut.getCookies(dto as LoginResponseDto, AuthType.PASSWORD, false);
expect(cookies).toEqual([
'immich_access_token=test-user@immich.com; HttpOnly; Path=/; Max-Age=604800 SameSite=Strict;',
'immich_access_token=test-user@immich.com; HttpOnly; Path=/; Max-Age=604800; SameSite=Strict;',
'immich_auth_type=password; HttpOnly; Path=/; Max-Age=604800; SameSite=Strict;',
]);
});