-
Notifications
You must be signed in to change notification settings - Fork 13
/
visualize.component.spec.ts
32 lines (28 loc) · 1.1 KB
/
visualize.component.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { VisualizeComponent } from './visualize.component';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterTestingModule } from '@angular/router/testing';
import { HttpClient } from 'selenium-webdriver/http';
import { HttpClientTestingModule } from '@angular/common/http/testing';
// TODO create mock vega view
// TODO mock http client request for spec
describe('VisualizeComponent', () => {
let component: VisualizeComponent;
let fixture: ComponentFixture<VisualizeComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [VisualizeComponent],
imports: [RouterTestingModule, HttpClientTestingModule],
providers: [RouterTestingModule, HttpClientTestingModule],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(VisualizeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});