import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { MockComponent } from 'ng2-mock-component' ; import { BubbleChartComponent } from './bubble-chart.component' ; describe ( 'BubbleChartComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ BubbleChartComponent , MockComponent ( { inputs : [ 'view' , 'showLegend' , 'legendOptions' , 'activeEntries' , 'animations' ] , selector : 'ngx-charts-chart' } ) , MockComponent ( { inputs : [ 'xScale' , 'yScale' , 'xScaleType' , 'yScaleType' , 'xAxisLabel' , 'yAxisLabel' , 'rScale' , 'xDomain' , 'yDomain' , 'xDomainType' , 'colors' , 'data' , 'activeEntries' , 'scaleType' , 'curve' , 'rangeFillOpacity' , 'animations' , 'dims' , 'xSet' , 'tooltipTemplate' , 'tooltipDisabled' , 'results' , 'visibleValue' , 'showLabel' , 'labelText' , 'tickFormatting' , 'yOrient' , 'showGridLines' , 'strokeWidth' , 'hasRange' , 'cx' , 'cy' , 'r' , 'stroke' , 'fill' , 'shape' , 'pointerEvents' , 'classNames' , 'tooltipType' , 'tooltipPlacement' , 'tooltipTitle' , 'tooltipContext' , 'ticks' ] , selector : ':svg:g' } ) ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( BubbleChartComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;