import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { AggregationChartComponent } from './aggregation-chart.component';
import {BarchartDataService} from "../../services/barchart-data.service";
import {AggregationChartDataService} from "../../services/aggregation-chart-data.service";
import {SharedMocksModule} from "../../../../testing/shared-mocks.module";
import {ResultSelectionStore} from "../../../result-selection/services/result-selection.store";
import {ResultSelectionService} from "../../../result-selection/services/result-selection.service";

describe('AggregationChartComponent', () => {
  let component: AggregationChartComponent;
  let fixture: ComponentFixture<AggregationChartComponent>;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ AggregationChartComponent ],
      providers: [
        BarchartDataService,
        AggregationChartDataService,
        ResultSelectionStore,
        ResultSelectionService
      ],
      imports: [SharedMocksModule]
    })
    .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(AggregationChartComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});

import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { AggregationChartComponent } from './aggregation-chart.component';
import {BarchartDataService} from "../../services/barchart-data.service";
import {AggregationChartDataService} from "../../services/aggregation-chart-data.service";
import {SharedMocksModule} from "../../../../testing/shared-mocks.module";
import {ResultSelectionStore} from "../../../result-selection/services/result-selection.store";
import {ResultSelectionService} from "../../../result-selection/services/result-selection.service";
import {SpinnerComponent} from "../../../shared/components/spinner/spinner.component";

describe('AggregationChartComponent', () => {
  let component: AggregationChartComponent;
  let fixture: ComponentFixture<AggregationChartComponent>;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ AggregationChartComponent, SpinnerComponent ],
      providers: [
        BarchartDataService,
        AggregationChartDataService,
        ResultSelectionStore,
        ResultSelectionService
      ],
      imports: [SharedMocksModule]
    })
    .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(AggregationChartComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});

Test SpinnerComponent in AggregationChart component
[IT-2784] Test SpinnerComponent in AggregationChart component

