import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { AtftDataCenterActorModule } from '../atft-data-center-actor.module' ; import { RendererService } from '../../../renderer' ; import { AnimationService } from '../../../animation' ; import { ServerStandActorComponent } from './server-stand-actor.component' ; import { StatsService } from '../../../stats' ; describe ( 'actor' , ( ) => { describe ( 'ServerStandActorComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { imports : [ AtftDataCenterActorModule ] , providers : [ StatsService , RendererService , AnimationService ] } ) ; fixture = TestBed . createComponent ( ServerStandActorComponent ) ; component = fixture . componentInstance ; return TestBed . compileComponents ( ) ; } ) ) ; it ( 'init' , waitForAsync ( ( ) => { fixture . detectChanges ( ) ; expect ( component ) . toBeTruthy ( ) ; component . onSelected ( ) ; component . onDeselected ( ) ; component . onClick ( ) ; } ) ) ; } ) ; } ) ;