summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts7
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/modals/error-modal/error-modal.component.spec.ts2
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();