diff options
author | Lorraine Welch <lb2391@att.com> | 2020-02-10 22:14:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-10 22:14:20 +0000 |
commit | 7cff23bb8cec8115ca430020db937e0fd4c30fa3 (patch) | |
tree | 49d007b32de9b61757aff237407c4a506d4c06e2 | |
parent | 0bcf267dd713bf31476aac59c9686b4a0aeb7480 (diff) | |
parent | 9f34936153fc6e174e8a70e97627f75978c8782b (diff) |
Merge "errors resolved in components & services"
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); |