import { HttpClientTestingModule } from '@angular/common/http/testing' ; import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { RouterTestingModule } from '@angular/router/testing' ; import { User } from 'carey-user' ; import { AlertService } from 'carey-alert' ; import { ProfileImageComponent } from './profile-image.component' ; describe ( 'ProfileImageComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ) => { await TestBed . configureTestingModule ( { declarations : [ ProfileImageComponent ] , imports : [ HttpClientTestingModule , RouterTestingModule ] , providers : [ AlertService ] } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ProfileImageComponent ) ; component = fixture . componentInstance ; let user = { } as User ; component . user = user ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;