diff --git a/src/components/olmap/BurstDetection/AnalysisParameters.test.ts b/src/components/olmap/BurstDetection/AnalysisParameters.test.ts index 46be13f..fa083a5 100644 --- a/src/components/olmap/BurstDetection/AnalysisParameters.test.ts +++ b/src/components/olmap/BurstDetection/AnalysisParameters.test.ts @@ -17,7 +17,8 @@ describe("burst detection request", () => { sampling_interval_minutes: 15, }); expect(state.detectionMode).toBe("latest"); - expect(state.targetTime?.minute() % 15).toBe(0); + expect(state.targetTime).not.toBeNull(); + expect(state.targetTime!.minute() % 15).toBe(0); }); it("sends one target time for historical replay", () => {