import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { BrowserModule } from '@angular/platform-browser' ; import { HttpClientModule } from '@angular/common/http' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; import { PageNotFoundComponent } from './page-not-found.component' ; import { MaterialModule } from '../material/material.module' ; import { ProjectService } from '../projects/project.service' ; describe ( 'PageNotFoundComponent' , ( ) => { let component ; let fixture ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { imports : [ BrowserModule , HttpClientModule , BrowserAnimationsModule , MaterialModule ] , declarations : [ PageNotFoundComponent ] , providers : [ ProjectService ] } ) . compileComponents ( ) ; fixture = TestBed . createComponent ( PageNotFoundComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; afterEach ( ( ) => { TestBed . resetTestingModule ( ) ; } ) ; } ) ;