From 2a90b42aca190e6c37f626637409aee81c2771c3 Mon Sep 17 00:00:00 2001 From: jantoun-scottlogic Date: Thu, 20 Jun 2024 14:45:30 +0100 Subject: [PATCH] Delete test that is no longer needed 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'. --- .../carbon-estimation.component.spec.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/app/carbon-estimation/carbon-estimation.component.spec.ts b/src/app/carbon-estimation/carbon-estimation.component.spec.ts index c9961bb2..280cd422 100644 --- a/src/app/carbon-estimation/carbon-estimation.component.spec.ts +++ b/src/app/carbon-estimation/carbon-estimation.component.spec.ts @@ -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 = [ {