summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp
diff options
context:
space:
mode:
authorIndrijeet kumar <indriku1@in.ibm.com>2020-02-24 13:36:06 +0530
committerIndrijeet kumar <indriku1@in.ibm.com>2020-02-24 13:37:04 +0530
commit9a5ecbebf8d687c13275d32ad8400ee4b553cc59 (patch)
tree32038fb7429a83e42f658ec011886ec1b23d265c /ecomp-sdk/epsdk-app-overlay/src/main/webapp
parent142ab2f44aae317a05de60908c0b259c73b79f6e (diff)
errors resolved in 3 components
errors resolved in new-role, column-list & edit-drill-down-link comp Issue-ID: PORTAL-813 Change-Id: Ia9a0c102149f372cf2763d48f6717a9a24ed4d5f Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/new-role/new-role.component.spec.ts21
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column-list/column-list.component.spec.ts23
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns-edit-component/edit-drill-down-link/edit-drill-down-link.component.spec.ts15
3 files changed, 40 insertions, 19 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/new-role/new-role.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/new-role/new-role.component.spec.ts
index 2049b859..b832b6af 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/new-role/new-role.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/roles/new-role/new-role.component.spec.ts
@@ -4,7 +4,9 @@
* ===================================================================
* Copyright (C) 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");
* you may not use this software except in compliance with the License.
@@ -37,8 +39,12 @@
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
+import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NewRoleComponent } from './new-role.component';
+import { FormsModule } from '@angular/forms';
+import { MatTableModule } from '@angular/material';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
describe('NewRoleComponent', () => {
let component: NewRoleComponent;
@@ -46,7 +52,14 @@ describe('NewRoleComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ NewRoleComponent ]
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
+ declarations: [ NewRoleComponent ],
+ imports:[
+ FormsModule,
+ MatTableModule,
+ HttpClientTestingModule
+ ],
+ providers:[NgbActiveModal]
})
.compileComponents();
}));
@@ -60,4 +73,4 @@ describe('NewRoleComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
-});
+}); \ No newline at end of file
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column-list/column-list.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column-list/column-list.component.spec.ts
index a4364cc5..6d6e9431 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column-list/column-list.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column-list/column-list.component.spec.ts
@@ -1,29 +1,35 @@
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatPaginatorModule } from '@angular/material/paginator';
import { MatSortModule } from '@angular/material/sort';
import { MatTableModule } from '@angular/material/table';
+import { ColumnListComponent } from './column-list.component';
+import { FormsModule } from '@angular/forms';
+import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { DataTableComponent } from './data-table.component';
-
-describe('DataTableComponent', () => {
- let component: DataTableComponent;
- let fixture: ComponentFixture<DataTableComponent>;
+describe('ColumnListComponent', () => {
+ let component: ColumnListComponent;
+ let fixture: ComponentFixture<ColumnListComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ DataTableComponent ],
+ declarations: [ ColumnListComponent ],
imports: [
NoopAnimationsModule,
MatPaginatorModule,
MatSortModule,
MatTableModule,
- ]
+ FormsModule,
+ HttpClientTestingModule
+ ],
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
}));
beforeEach(() => {
- fixture = TestBed.createComponent(DataTableComponent);
+ fixture = TestBed.createComponent(ColumnListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
@@ -31,4 +37,5 @@ describe('DataTableComponent', () => {
it('should compile', () => {
expect(component).toBeTruthy();
});
+
});
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns-edit-component/edit-drill-down-link/edit-drill-down-link.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns-edit-component/edit-drill-down-link/edit-drill-down-link.component.spec.ts
index ad5f13fe..957be88b 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns-edit-component/edit-drill-down-link/edit-drill-down-link.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns-edit-component/edit-drill-down-link/edit-drill-down-link.component.spec.ts
@@ -1,6 +1,8 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { EditDrillDownLinkComponent } from './edit-drill-down-link.component';
+import { FormsModule } from '@angular/forms';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
describe('EditDrillDownLinkComponent', () => {
let component: EditDrillDownLinkComponent;
@@ -8,7 +10,11 @@ describe('EditDrillDownLinkComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ EditDrillDownLinkComponent ]
+ declarations: [ EditDrillDownLinkComponent ],
+ imports:[
+ FormsModule,
+ HttpClientTestingModule
+ ]
})
.compileComponents();
}));
@@ -17,9 +23,4 @@ describe('EditDrillDownLinkComponent', () => {
fixture = TestBed.createComponent(EditDrillDownLinkComponent);
component = fixture.componentInstance;
fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
+ }); \ No newline at end of file