import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { Component , Input , Output , EventEmitter } from '@angular/core' ; import { FeedNewsComponent } from './feed-news.component' ; @ Component ( { selector : 'feed-card' , template : '' } ) class FeedCardStubComponent { @ Input ( ) feedItem ; @ Input ( ) feedIndex ; @ Output ( ) showLightBox : EventEmitter < any > ; } describe ( 'FeedNewsComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ FeedNewsComponent ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( FeedNewsComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; } ) ;