import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { Contact } from '../../models/contact' ; import { ReviewFormComponent } from './review-form.component' ; describe ( 'ReviewFormComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ) => { await TestBed . configureTestingModule ( { declarations : [ ReviewFormComponent ] } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ReviewFormComponent ) ; component = fixture . componentInstance ; let contact = { } as Contact ; component . contact = contact ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;