import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { ChartComponent } from './chart.component' ; import { NgxChartsModule } from '@swimlane/ngx-charts' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; describe ( 'ChartComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ ChartComponent ] , imports : [ NgxChartsModule , BrowserAnimationsModule ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ChartComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;