import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { NewsComponent } from './news.component'; describe('NewsComponent', () => { let component: NewsComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ NewsComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(NewsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });