This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
/
view-canvas.component.spec.ts
82 lines (78 loc) · 3.02 KB
/
view-canvas.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpModule } from "@angular/http";
import { LoggerService } from "@core/logger.service";
import { MockAppSettingsService } from "@core/mock-app-settings.service";
import { AppSettingsService } from "@core/app-settings.service";
import { ViewCanvasComponent } from '@dataservices/virtualization/view-editor/view-canvas/view-canvas.component';
import { ViewEditorService } from "@dataservices/virtualization/view-editor/view-editor.service";
import {
ActionModule,
CardModule,
EmptyStateModule,
FilterModule,
ListModule,
NotificationModule,
SortModule,
TableModule,
WizardModule } from "patternfly-ng";
import { DataserviceService } from "@dataservices/shared/dataservice.service";
import { MockDataserviceService } from "@dataservices/shared/mock-dataservice.service";
import { VdbService } from "@dataservices/shared/vdb.service";
import { MockVdbService } from "@dataservices/shared/mock-vdb.service";
import { NotifierService } from "@dataservices/shared/notifier.service";
import { ViewPropertyEditorsComponent } from "@dataservices/virtualization/view-editor/view-property-editors/view-property-editors.component";
import { TabsModule } from "ngx-bootstrap";
import { GraphVisualComponent, LinkVisualComponent, NodeVisualComponent } from "@dataservices/virtualization/view-editor/view-canvas/visuals";
import { CanvasService } from "@dataservices/virtualization/view-editor/view-canvas/canvas.service";
import { SelectionService } from "@core/selection.service";
import { PropertyEditorComponent } from "@dataservices/virtualization/view-editor/view-property-editors/property-editor/property-editor.component";
describe('ViewCanvasComponent', () => {
let component: ViewCanvasComponent;
let fixture: ComponentFixture<ViewCanvasComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ActionModule,
CardModule,
EmptyStateModule,
FilterModule,
ListModule,
NotificationModule,
SortModule,
TableModule,
WizardModule,
HttpModule,
TabsModule.forRoot()
],
declarations: [
GraphVisualComponent,
LinkVisualComponent,
NodeVisualComponent,
PropertyEditorComponent,
ViewCanvasComponent,
ViewPropertyEditorsComponent
],
providers: [
{ provide: AppSettingsService, useClass: MockAppSettingsService },
{ provide: DataserviceService, useClass: MockDataserviceService },
CanvasService,
LoggerService,
NotifierService,
SelectionService,
{ provide: VdbService, useClass: MockVdbService },
ViewEditorService
]
})
.compileComponents().then(() => {
// nothing to do
});
}));
beforeEach(() => {
fixture = TestBed.createComponent(ViewCanvasComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should be created', () => {
expect(component).toBeTruthy();
});
});