diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-02-27 18:10:47 +0530 |
---|---|---|
committer | Rupinder <rupinsi1@in.ibm.com> | 2020-02-27 18:12:30 +0530 |
commit | 9cabf1f06cf32a43c4fd5409be7ed9f416181913 (patch) | |
tree | 34f411a94b22b7b8787fe8e76558443457c4395d /ecomp-sdk/epsdk-app-overlay/src/main/webapp | |
parent | 37db40a2dc6e811e919b912579fbbb2b1d8cedba (diff) |
existing errors resolved in components
Error resolved in welcome-dashboard, run-report-result-set component
Issue-ID: PORTAL-834
Change-Id: Ibd920557243ab0668a14a4c4e9391c379c12d0b8
Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp')
2 files changed, 8 insertions, 3 deletions
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(); })); |