diff options
author | Indrijeet kumar <indriku1@in.ibm.com> | 2020-02-10 18:12:15 +0530 |
---|---|---|
committer | Indrijeet kumar <indriku1@in.ibm.com> | 2020-02-10 18:12:25 +0530 |
commit | 0e0c32f3c48e091d8be9f841af84704561c68c65 (patch) | |
tree | e9c635884fb0189aa83ac698defed9e80e7e10fd | |
parent | 9f34936153fc6e174e8a70e97627f75978c8782b (diff) |
errs in layout & erroor-modal components resolved
errors in layout & erroor-modal components resolved
Issue-ID: PORTAL-813
Change-Id: I451f7799119dfb9a4cdb12fb89b27284c44a174d
Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
2 files changed, 6 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts index 22f11b8d..13d3e34a 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts @@ -38,7 +38,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { TranslateModule } from '@ngx-translate/core'; - +import { HttpClientTestingModule } from '@angular/common/http/testing'; import { LayoutComponent } from './layout.component'; import { LayoutModule } from './layout.module'; @@ -46,10 +46,11 @@ describe('LayoutComponent', () => { let component: LayoutComponent; let fixture: ComponentFixture<LayoutComponent>; - beforeEach( - async(() => { + beforeEach( async(() => { TestBed.configureTestingModule({ + providers:[], imports: [ + HttpClientTestingModule, LayoutModule, RouterTestingModule, TranslateModule.forRoot(), diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/error-modal/error-modal.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/error-modal/error-modal.component.spec.ts index 36497beb..0026baee 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/error-modal/error-modal.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/error-modal/error-modal.component.spec.ts @@ -1,6 +1,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ErrorModalComponent } from './error-modal.component'; +import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; describe('ErrorModalComponent', () => { let component: ErrorModalComponent; @@ -8,6 +9,7 @@ describe('ErrorModalComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ + providers:[NgbActiveModal], declarations: [ ErrorModalComponent ] }) .compileComponents(); |