import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ChordDiagramComponent } from './chord-diagram.component'; import { fullyConnected, labels } from './chord.helpers'; describe('ChordDiagramComponent', () => { let component: ChordDiagramComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ChordDiagramComponent], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(ChordDiagramComponent); component = fixture.componentInstance; component.height = null; component.width = null; component.padding = 25; component.chordSpacing = 10 * (Math.PI / 360); component.baseThickness = 5; component.baseCornerRadius = 4; component.baseColor = 'black'; component.colors = { domain: [1, 5, 10], range: ['red', 'yellow', 'green'], }; component.chordWidthFactor = 0.7; component.outlineWidth = 0; component.minSpreadFactor = 0.3; component.dropShadow = true; component.data = fullyConnected(4); component.labels = labels(4); fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });