Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lastminutediorama committed Dec 20, 2024
1 parent 0cde2e4 commit 396e04c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 396e04c

Please sign in to comment.