Skip to content

Commit

Permalink
Delete test that is no longer needed
Browse files Browse the repository at this point in the history
This test also seemed to be broken. I think it should have
failed after the changes and it passes when the 'extraHeight' is
set to '0'.
  • Loading branch information
jantoun-scottlogic committed Jun 20, 2024
1 parent d95fa5f commit 2a90b42
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/app/carbon-estimation/carbon-estimation.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,6 @@ describe('CarbonEstimationComponent', () => {
expect(component.onResize).toHaveBeenCalledTimes(1);
});

it('chart updateOptions should be not be called if inner height less than base height and extra height', () => {
spyOn(component.chart as ChartComponent, 'updateOptions');

fixture.componentRef.setInput('extraHeight', '600');
fixture.detectChanges();
component.ngOnInit();
fixture.detectChanges();

expect(component.chart?.updateOptions).not.toHaveBeenCalled();
});

it('should set emissions with total % and category breakdown', () => {
const expectedEmissions = [
{
Expand Down

0 comments on commit 2a90b42

Please sign in to comment.