import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { FormsModule } from '@angular/forms' ; import { Project } from '@workshop/core-data' ; import { MaterialModule } from '@workshop/material' ; import { ProjectDetailsComponent } from './project-details.component' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; describe ( 'ProjectDetailsComponent' , ( ) => { let component ; let fixture ; const emptyProject = { id : null , title : '' , details : '' , percentComplete : 0 , approved : false , } ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ ProjectDetailsComponent ] , imports : [ MaterialModule , FormsModule , BrowserAnimationsModule ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ProjectDetailsComponent ) ; component = fixture . componentInstance ; component . currentProject = emptyProject ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;