diff options
author | Indrijeet kumar <indriku1@in.ibm.com> | 2020-02-10 18:01:13 +0530 |
---|---|---|
committer | Indrijeet kumar <indriku1@in.ibm.com> | 2020-02-10 18:03:41 +0530 |
commit | 9f34936153fc6e174e8a70e97627f75978c8782b (patch) | |
tree | 261a12ad0ca20c5255b38de9e9a7b069181eb888 | |
parent | 39dd8ad21676c8160f8444ff115d9226ef173300 (diff) |
errors resolved in components & services
errors resolved in components & services
Issue-ID: PORTAL-813
Change-Id: I7f92c6eaaa6ce5775eca682b3ed0f0f4ae88ad75
Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
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); |