This commit is contained in:
Antoine Moreaux
2024-12-19 15:24:49 +01:00
committed by GitHub
parent 53576245aa
commit 7d8f895ae9
2 changed files with 11 additions and 4 deletions

View File

@ -66,8 +66,15 @@ describe('RefreshTokenService', () => {
describe('verifyRefreshToken', () => {
it('should verify a refresh token successfully', async () => {
const mockToken = 'valid-refresh-token';
const mockJwtPayload = { jti: 'token-id', sub: 'user-id' };
const mockAppToken = { id: 'token-id', revokedAt: null };
const mockJwtPayload = {
jti: 'token-id',
sub: 'user-id',
};
const mockAppToken = {
id: 'token-id',
workspaceId: 'workspace-id',
revokedAt: null,
};
const mockUser: Partial<User> = {
id: 'some-id',
firstName: 'John',