From 396e04c892152932c814106ab01a94dc456238ff Mon Sep 17 00:00:00 2001 From: lastminutediorama Date: Fri, 20 Dec 2024 12:26:32 -0600 Subject: [PATCH] fix tests --- .../change-over-time-chart.component.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/interface/src/app/treatments/change-over-time-chart/change-over-time-chart.component.spec.ts b/src/interface/src/app/treatments/change-over-time-chart/change-over-time-chart.component.spec.ts index 7bd1a1520..0721ab101 100644 --- a/src/interface/src/app/treatments/change-over-time-chart/change-over-time-chart.component.spec.ts +++ b/src/interface/src/app/treatments/change-over-time-chart/change-over-time-chart.component.spec.ts @@ -4,6 +4,8 @@ import { MockProvider } from 'ng-mocks'; import { ChangeOverTimeChartComponent } from './change-over-time-chart.component'; import { BehaviorSubject } from 'rxjs'; import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { TreatmentsState } from '../treatments.state'; +import { TreatedStandsState } from '../treatment-map/treated-stands.state'; describe('ChangeOverTimeChartComponent', () => { let component: ChangeOverTimeChartComponent; @@ -13,9 +15,10 @@ describe('ChangeOverTimeChartComponent', () => { await TestBed.configureTestingModule({ imports: [ChangeOverTimeChartComponent, HttpClientTestingModule], providers: [ + TreatedStandsState, + MockProvider(TreatmentsState), MockProvider(DirectImpactsStateService, { activeStand$: new BehaviorSubject(null), - changeOverTimeData$: new BehaviorSubject([[]]), }), ], }).compileComponents();