import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { StreamComponent } from './stream.component' ; import { UtilsService } from '../../services/utils/utils.service' ; import { UtilsServiceMock } from '../../services/utils/utils.service.mock' ; import { CdkOverlayService } from '../../services/cdk-overlay/cdk-overlay.service' ; import { CdkOverlayServiceMock } from '../../services/cdk-overlay/cdk-overlay.service.mock' ; describe ( 'StreamComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ StreamComponent ] , providers : [ { provide : UtilsService , useClass : UtilsServiceMock } , { provide : CdkOverlayService , useClass : CdkOverlayServiceMock } ] } ) . compileComponents ( ) ; fixture = TestBed . createComponent ( StreamComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;