fix test (#9147)
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user