errors resolved in roles and usage components 57/102957/1
authorIndrijeet kumar <indriku1@in.ibm.com>
Wed, 4 Mar 2020 07:14:10 +0000 (12:44 +0530)
committerIndrijeet kumar <indriku1@in.ibm.com>
Wed, 4 Mar 2020 07:14:16 +0000 (12:44 +0530)
errors resolved in roles and usage components

Issue-ID: PORTAL-813
Change-Id: I9734141f82467f406e3c2d0c0bc76cb120d54cd7
Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/roles.component.spec.ts
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/usage/usage.component.spec.ts

index 2a4b5c3..8af2689 100644 (file)
@@ -4,6 +4,9 @@
  * ===================================================================
  * Copyright © 2019 AT&T Intellectual Property. All rights reserved.
  * ===================================================================
+ * 
+ * Modification Copyright © 2020 IBM.
+ * ===================================================================
  *
  * Unless otherwise specified, all software contained herein is licensed
  * under the Apache License, Version 2.0 (the "License");
@@ -39,6 +42,9 @@
 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { RolesComponent } from './roles.component';
+import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
+import { MatTableModule } from '@angular/material';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
 
 describe('RolesComponent', () => {
   let component: RolesComponent;
@@ -46,7 +52,9 @@ describe('RolesComponent', () => {
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
-      declarations: [ RolesComponent ]
+      schemas: [CUSTOM_ELEMENTS_SCHEMA],
+      declarations: [ RolesComponent ],
+      imports:[MatTableModule,HttpClientTestingModule]
     })
     .compileComponents();
   }));
index d681278..01f3166 100644 (file)
@@ -4,6 +4,9 @@
  * ===================================================================
  * Copyright © 2019 AT&T Intellectual Property. All rights reserved.
  * ===================================================================
+ * 
+ * Modification Copyright © 2020 IBM.
+ * ===================================================================
  *
  * Unless otherwise specified, all software contained herein is licensed
  * under the Apache License, Version 2.0 (the "License");
@@ -39,6 +42,8 @@
 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { UsageComponent } from './usage.component';
+import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
 
 describe('UsageComponent', () => {
   let component: UsageComponent;
@@ -46,7 +51,9 @@ describe('UsageComponent', () => {
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
-      declarations: [ UsageComponent ]
+      declarations: [ UsageComponent ],
+      schemas:[CUSTOM_ELEMENTS_SCHEMA],
+      imports:[HttpClientTestingModule]
     })
     .compileComponents();
   }));