UNPKG

827 BPlain TextView Raw
1import { Component } from '@angular/core';
2import { ComponentFixture, TestBed } from '@angular/core/testing';
3
4import { NgChartModule } from '../chartjs-ng2';
5
6const html = ``;
7
8describe('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
33class TestChartsComponent {
34}