This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
jdbc-table-selector.component.spec.ts
46 lines (41 loc) · 1.92 KB
/
jdbc-table-selector.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
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { FormsModule } from "@angular/forms";
import { HttpModule } from "@angular/http";
import { ConnectionService } from "@connections/shared/connection.service";
import { MockConnectionService } from "@connections/shared/mock-connection.service";
import { AppSettingsService } from "@core/app-settings.service";
import { LoggerService } from "@core/logger.service";
import { SelectedTableComponent } from "@dataservices/selected-table/selected-table.component";
import { MockVdbService } from "@dataservices/shared/mock-vdb.service";
import { NotifierService } from "@dataservices/shared/notifier.service";
import { VdbService } from "@dataservices/shared/vdb.service";
import { WizardService } from "@dataservices/shared/wizard.service";
import { NgxDatatableModule } from "@swimlane/ngx-datatable";
import { JdbcTableSelectorComponent } from "./jdbc-table-selector.component";
describe("JdbcTableSelectorComponent", () => {
let component: JdbcTableSelectorComponent;
let fixture: ComponentFixture<JdbcTableSelectorComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ FormsModule, HttpModule, NgxDatatableModule ],
declarations: [ JdbcTableSelectorComponent, SelectedTableComponent ],
providers: [
AppSettingsService, LoggerService, NotifierService, WizardService,
{ provide: ConnectionService, useClass: MockConnectionService },
{ provide: VdbService, useClass: MockVdbService },
]
})
.compileComponents().then(() => {
// nothing to do
});
}));
beforeEach(() => {
fixture = TestBed.createComponent(JdbcTableSelectorComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it("should be created", () => {
console.log("========== [JdbcTableSelectorComponent] should be created");
expect(component).toBeTruthy();
});
});