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