import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { NgbCarouselModule, NgbAlertModule } from '@ng-bootstrap/ng-bootstrap'; import { TimelineComponent, NotificationComponent, ChatComponent } from './components'; import { StatModule } from '../../shared'; import { DashboardComponent } from './dashboard.component'; describe('DashboardComponent', () => { let component: DashboardComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ NgbCarouselModule.forRoot(), NgbAlertModule.forRoot(), StatModule, ], declarations: [ DashboardComponent, TimelineComponent, NotificationComponent, ChatComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(DashboardComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });