diff --git a/src/app/helpers/guards/auth/auth.guard.spec.ts b/src/app/helpers/guards/auth/auth.guard.spec.ts index 68889d2..bc999b1 100644 --- a/src/app/helpers/guards/auth/auth.guard.spec.ts +++ b/src/app/helpers/guards/auth/auth.guard.spec.ts @@ -1,12 +1,20 @@ import { TestBed } from '@angular/core/testing'; import { AuthGuard } from './auth.guard'; +import { HttpClientModule } from '@angular/common/http'; +import { RouterModule } from '@angular/router'; +import { RouterTestingModule } from '@angular/router/testing'; describe('AuthGuard', () => { let guard: AuthGuard; beforeEach(() => { - TestBed.configureTestingModule({}); + TestBed.configureTestingModule({ + imports: [ + HttpClientModule, + RouterTestingModule, + ] + }); guard = TestBed.inject(AuthGuard); }); diff --git a/src/app/pages/auth/components/login/login.component.spec.ts b/src/app/pages/auth/components/login/login.component.spec.ts index 62ebcaa..d29e769 100644 --- a/src/app/pages/auth/components/login/login.component.spec.ts +++ b/src/app/pages/auth/components/login/login.component.spec.ts @@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing'; import { HttpClientModule } from '@angular/common/http'; import { ClarityModule } from '@clr/angular'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; +import { SharedModule } from '@shared/shared.module'; describe('LoginComponent', () => { let component: LoginComponent; @@ -17,6 +18,7 @@ describe('LoginComponent', () => { RouterTestingModule, HttpClientModule, ClarityModule, + SharedModule, ], declarations: [ LoginComponent, diff --git a/src/app/pages/auth/components/register/register.component.spec.ts b/src/app/pages/auth/components/register/register.component.spec.ts index a23e135..5dfc701 100644 --- a/src/app/pages/auth/components/register/register.component.spec.ts +++ b/src/app/pages/auth/components/register/register.component.spec.ts @@ -5,6 +5,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { HttpClientModule } from '@angular/common/http'; import { ClarityModule } from '@clr/angular'; +import { SharedModule } from '@shared/shared.module'; describe('RegisterComponent', () => { let component: RegisterComponent; @@ -17,6 +18,7 @@ describe('RegisterComponent', () => { RouterTestingModule, HttpClientModule, ClarityModule, + SharedModule, ], declarations: [ RegisterComponent ] })