diff --git a/public/expressions/__tests__/overlay_anomalies.test.ts b/public/expressions/__tests__/overlay_anomalies.test.ts index c503c601..b117c635 100644 --- a/public/expressions/__tests__/overlay_anomalies.test.ts +++ b/public/expressions/__tests__/overlay_anomalies.test.ts @@ -88,9 +88,7 @@ describe('overlay_anomalies spec', () => { }); describe('convertAnomaliesToPointInTimeEventsVisLayer()', () => { test('convert anomalies to PointInTimeEventsVisLayer', async () => { - const expectedTimeStamp = - PARSED_ANOMALIES[0].startTime + - (PARSED_ANOMALIES[0].endTime - PARSED_ANOMALIES[0].startTime) / 2; + const expectedTimeStamp = PARSED_ANOMALIES[0].startTime; const expectedPointInTimeEventsVisLayer = { events: [ { diff --git a/public/pages/DetectorConfig/containers/__tests__/__snapshots__/DetectorConfig.test.tsx.snap b/public/pages/DetectorConfig/containers/__tests__/__snapshots__/DetectorConfig.test.tsx.snap index cf5f1fbe..2e0283d8 100644 --- a/public/pages/DetectorConfig/containers/__tests__/__snapshots__/DetectorConfig.test.tsx.snap +++ b/public/pages/DetectorConfig/containers/__tests__/__snapshots__/DetectorConfig.test.tsx.snap @@ -566,6 +566,7 @@ exports[` spec renders the component 1`] = ` >
spec renders the component with 2 custom and 1 simpl >
{ let randomDetector_20_min: Detector; let randomDetector_20_sec: Detector; @@ -50,7 +50,7 @@ describe('anomalyResultUtils', () => { }, ] as FeatureAttributes[], }; - + randomDetector_20_sec = { ...getRandomDetector(true), detectionInterval: { @@ -570,7 +570,7 @@ describe('anomalyResultUtils', () => { ).toEqual([]); }); }); - + describe('parsePureAnomalies()', () => { test('parse anomalies', async () => { const parsedPureAnomalies: AnomalyData[] = await parsePureAnomalies( @@ -579,4 +579,4 @@ describe('anomalyResultUtils', () => { expect(parsedPureAnomalies).toStrictEqual(PARSED_ANOMALIES); }); }); -}); \ No newline at end of file +});