diff options
author | Lorraine Welch <lb2391@att.com> | 2020-02-27 15:15:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-27 15:15:59 +0000 |
commit | b79d38f79feb3dbf4cd2f4025826d94770527ac9 (patch) | |
tree | 5f2abcb0f4a02db6d1dd9da55421c055ca115bf1 | |
parent | e9738ab54db5467da7bb61403b6f58f231becc79 (diff) | |
parent | 9cabf1f06cf32a43c4fd5409be7ed9f416181913 (diff) |
Merge "existing errors resolved in components"
3 files changed, 13 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts index c4742cb8..83f67d5b 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts @@ -4,6 +4,8 @@ * =================================================================== * 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"); @@ -48,6 +50,7 @@ import { } from '@angular/material'; import { WelcomeDashboardComponent } from './welcome-dashboard.component'; +import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; describe('WelcomeDashboardComponent', () => { let component: WelcomeDashboardComponent; @@ -55,6 +58,7 @@ describe('WelcomeDashboardComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ + schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA], declarations: [WelcomeDashboardComponent], imports: [ NoopAnimationsModule, @@ -77,4 +81,4 @@ describe('WelcomeDashboardComponent', () => { it('should compile', () => { 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/run/run-report-result-set/run-report-result-set.component.html b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-result-set/run-report-result-set.component.html index 76183db3..71520ef7 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-result-set/run-report-result-set.component.html +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-result-set/run-report-result-set.component.html @@ -15,7 +15,7 @@ </table> <mat-paginator #paginator - [length]="dataSource?.data.length" + [length]="dataSource?.data?.length" [pageIndex]="0" [pageSize]="15" [pageSizeOptions]="[15, 25, 50, 100, 250]"> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-result-set/run-report-result-set.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-result-set/run-report-result-set.component.spec.ts index 3aa780fe..44765d49 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-result-set/run-report-result-set.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-result-set/run-report-result-set.component.spec.ts @@ -5,8 +5,11 @@ import { MatSortModule } from '@angular/material/sort'; import { MatTableModule } from '@angular/material/table'; import { RunReportResultSetComponent } from './run-report-result-set.component'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { HttpClient } from '@angular/common/http'; +import { RouterTestingModule } from '@angular/router/testing'; -describe('RunReportFinalTableComponent', () => { +describe('RunReportResultSetComponent', () => { let component: RunReportResultSetComponent; let fixture: ComponentFixture<RunReportResultSetComponent>; @@ -18,7 +21,9 @@ describe('RunReportFinalTableComponent', () => { MatPaginatorModule, MatSortModule, MatTableModule, - ] + HttpClientTestingModule, + RouterTestingModule + ], }).compileComponents(); })); |