summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay
diff options
context:
space:
mode:
authorIndrijeet kumar <indriku1@in.ibm.com>2020-02-16 09:50:27 +0530
committerIndrijeet kumar <indriku1@in.ibm.com>2020-02-16 09:51:39 +0530
commit8b330a5948066e63954b2f599e54c17fe751020c (patch)
treeabb399990e5a8e9ca12704a88c93caa8c07e4784 /ecomp-sdk/epsdk-app-overlay
parente8baea11cde32ce6fd88884d979e414fee2b47bc (diff)
err in cache-admin & new-menu resolved
err in cache-admin & new-menu resolved Issue-ID: PORTAL-813 Change-Id: Ic01c8e04f03c68fbd942dc6f0bd8435dbf4c71ca Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/cache-admin/cache-admin.component.spec.ts9
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/new-menu/new-menu.component.spec.ts13
2 files changed, 17 insertions, 5 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/cache-admin/cache-admin.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/cache-admin/cache-admin.component.spec.ts
index e2550383..ead4e571 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/cache-admin/cache-admin.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/cache-admin/cache-admin.component.spec.ts
@@ -1,14 +1,17 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
+import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CacheAdminComponent } from './cache-admin.component';
-
+import { MatExpansionModule } from '@angular/material';
+import { HttpClient, HttpClientModule } from '@angular/common/http';
describe('CacheAdminComponent', () => {
let component: CacheAdminComponent;
let fixture: ComponentFixture<CacheAdminComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ CacheAdminComponent ]
+ imports:[MatExpansionModule, HttpClientModule],
+ declarations: [ CacheAdminComponent ],
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
.compileComponents();
}));
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/new-menu/new-menu.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/new-menu/new-menu.component.spec.ts
index 860c0169..97ddeaaa 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/new-menu/new-menu.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/new-menu/new-menu.component.spec.ts
@@ -37,8 +37,15 @@
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
+import {FormsModule} from '@angular/forms';
import { NewMenuComponent } from './new-menu.component';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
+import { RouterModule } from '@angular/router';
+import { RouterTestingModule } from '@angular/router/testing';
+import { CookieService } from 'ngx-cookie-service';
+
+
describe('NewMenuComponent', () => {
let component: NewMenuComponent;
@@ -46,7 +53,9 @@ describe('NewMenuComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ NewMenuComponent ]
+ declarations: [ NewMenuComponent ],
+ imports:[FormsModule, HttpClientTestingModule,RouterTestingModule],
+ providers:[NgbActiveModal,CookieService]
})
.compileComponents();
}));