Skip to content

Commit

Permalink
Change getTableData to private
Browse files Browse the repository at this point in the history
  • Loading branch information
jmain-scottlogic committed Jul 30, 2024
1 parent 923d647 commit ea6d233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ describe('CarbonEstimationTableComponent', () => {
});

it('should get emissions when getEmissions called', () => {
const emissions = component.getTableData(component.carbonEstimation());
expect(emissions.length).toBe(16);
const tableData = component.tableData();
expect(tableData.length).toBe(16);
});

it('should call toggle when left arrow clicked on expanded parent row', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class CarbonEstimationTableComponent {
}
}

public getTableData(carbonEstimation?: CarbonEstimation): TableItem[] {
private getTableData(carbonEstimation?: CarbonEstimation): TableItem[] {
return !carbonEstimation ?
[]
: [
Expand Down

0 comments on commit ea6d233

Please sign in to comment.