diff options
3 files changed, 15 insertions, 1 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/information-modal/information-modal.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/information-modal/information-modal.component.spec.ts index 1cc043ac..521b1834 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/information-modal/information-modal.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/information-modal/information-modal.component.spec.ts @@ -1,6 +1,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { InformationModalComponent } from './information-modal.component'; +import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; describe('InformationModalComponent', () => { let component: InformationModalComponent; @@ -8,6 +9,7 @@ describe('InformationModalComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ + providers:[NgbActiveModal], declarations: [ InformationModalComponent ] }) .compileComponents(); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/success-modal/success-modal.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/success-modal/success-modal.component.spec.ts index 911af135..27e0b9ab 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/success-modal/success-modal.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/success-modal/success-modal.component.spec.ts @@ -1,6 +1,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { SuccessModalComponent } from './success-modal.component'; +import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; describe('SuccessModalComponent', () => { let component: SuccessModalComponent; @@ -8,6 +9,7 @@ describe('SuccessModalComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ + providers:[NgbActiveModal], declarations: [ SuccessModalComponent ] }) .compileComponents(); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column.service.spec.ts index 2115f338..22e1cc3d 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column.service.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column.service.spec.ts @@ -1,9 +1,19 @@ import { TestBed } from '@angular/core/testing'; import { ColumnService } from './column.service'; +import { HttpClient } from '@angular/common/http'; +import { HttpTestingController, HttpClientTestingModule } from '@angular/common/http/testing'; describe('ColumnService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + let httpClient: HttpClient; + let httpTestingController: HttpTestingController; + beforeEach(() => + TestBed.configureTestingModule({ + imports: [HttpClientTestingModule] + })); + + // httpClient=TestBed.get(HttpClient); + // httpTestingController=TestBed.get(httpTestingController); it('should be created', () => { const service: ColumnService = TestBed.get(ColumnService); |