This commit is contained in:
styve Lioumba
2025-11-20 14:37:41 +01:00
parent dd77e3d023
commit 06979b79e3
21 changed files with 205 additions and 152 deletions

View File

@@ -10,8 +10,8 @@ import { PROFILE_REPOSITORY_TOKEN } from '@app/infrastructure/profiles/profile-r
describe('authGuard', () => {
let mockRouter: Partial<Router>;
let mockAuthRepository: jest.Mocked<AuthRepository>;
let mockProfileRepo: jest.Mocked<ProfileRepository>;
let mockAuthRepository: jest.Mocked<Partial<AuthRepository>>;
let mockProfileRepo: jest.Mocked<Partial<ProfileRepository>>;
const executeGuard: CanActivateFn = (...guardParameters) =>
TestBed.runInInjectionContext(() => authGuard(...guardParameters));
@@ -24,7 +24,6 @@ describe('authGuard', () => {
mockAuthRepository = {
get: jest.fn(),
login: jest.fn(),
update: jest.fn(),
sendVerificationEmail: jest.fn(),
logout: jest.fn(),
isAuthenticated: jest.fn(),