apps/ng2-charts-demo/src/app/bubble-chart/bubble-chart.component.spec.ts
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BubbleChartComponent } from './bubble-chart.component';
import { provideCharts, withDefaultRegisterables } from 'ng2-charts';
import { provideNoopAnimations } from '@angular/platform-browser/animations';
import { provideHighlightjs } from '../app.config';
describe('BubbleChartComponent', () => {
let component: BubbleChartComponent;
let fixture: ComponentFixture<BubbleChartComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
providers: [
provideHighlightjs(),
provideNoopAnimations(),
provideCharts(withDefaultRegisterables()),
],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(BubbleChartComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});