From a7cb653826d1ef9c6a06d3d5818744aee964ea25 Mon Sep 17 00:00:00 2001 From: Indrijeet kumar Date: Wed, 4 Mar 2020 12:44:10 +0530 Subject: errors resolved in roles and usage components errors resolved in roles and usage components Issue-ID: PORTAL-813 Change-Id: I9734141f82467f406e3c2d0c0bc76cb120d54cd7 Signed-off-by: Indrijeet Kumar --- .../ngapp/src/app/pages/admin/roles/roles.component.spec.ts | 10 +++++++++- .../ngapp/src/app/pages/admin/usage/usage.component.spec.ts | 9 ++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'ecomp-sdk') diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/roles.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/roles.component.spec.ts index 2a4b5c33..8af2689a 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/roles.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/roles.component.spec.ts @@ -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(); })); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/usage/usage.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/usage/usage.component.spec.ts index d6812789..01f31669 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/usage/usage.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/usage/usage.component.spec.ts @@ -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(); })); -- cgit 1.2.3-korg