1 | import { Component } from '@angular/core';
|
2 | import { ComponentFixture, TestBed } from '@angular/core/testing';
|
3 |
|
4 | import { NgChartModule } from '../chartjs-ng2';
|
5 |
|
6 | const html = ``;
|
7 |
|
8 | describe('Component: chartjs-ng2', () => {
|
9 | let fixture:ComponentFixture<any>;
|
10 | let context:TestChartsComponent;
|
11 |
|
12 | beforeEach(() => {
|
13 | TestBed.configureTestingModule({
|
14 | declarations: [TestChartsComponent],
|
15 | imports: [NgChartModule]
|
16 | });
|
17 | TestBed.overrideComponent(TestChartsComponent, {set: {template: html}});
|
18 | fixture = TestBed.createComponent(TestChartsComponent);
|
19 | context = fixture.componentInstance;
|
20 | fixture.detectChanges();
|
21 | });
|
22 |
|
23 | it('fixture should not be null', () => {
|
24 | expect(fixture).not.toBeNull();
|
25 | });
|
26 | });
|
27 |
|
28 | @Component({
|
29 | selector: 'charts-test',
|
30 | template: ''
|
31 | })
|
32 |
|
33 | class TestChartsComponent {
|
34 | }
|