From 33ed3ffc8e14c98f079e9652b95600dc7601f412 Mon Sep 17 00:00:00 2001 From: Egor Ryashin Date: Wed, 6 Sep 2023 19:39:01 +0300 Subject: [PATCH] null filling for UI --- .../time-series/prepare-timeseries.spec.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web-common/src/features/dashboards/time-series/prepare-timeseries.spec.ts b/web-common/src/features/dashboards/time-series/prepare-timeseries.spec.ts index 4b66dd54544..a5c0f8c196d 100644 --- a/web-common/src/features/dashboards/time-series/prepare-timeseries.spec.ts +++ b/web-common/src/features/dashboards/time-series/prepare-timeseries.spec.ts @@ -12,7 +12,7 @@ test("should fill in missing intervals", () => { const result = prepareTimeSeries( original, null, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "UTC", "2023-04-14T10:00:00Z", "2023-04-14T13:00:00Z" @@ -33,7 +33,7 @@ test("should fill in missing intervals in winter", () => { const result = prepareTimeSeries( original, null, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "UTC", "2023-01-14T10:00:00Z", "2023-01-14T13:00:00Z" @@ -54,7 +54,7 @@ test("should fill in missing intervals, CET", () => { const result = prepareTimeSeries( original, null, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "CET", "2023-01-14T10:00:00Z", "2023-01-14T13:00:00Z" @@ -122,7 +122,7 @@ test("comparison, should fill in missing intervals", () => { const result = prepareTimeSeries( original, comparison, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "UTC", "2023-04-14T10:00:00Z", "2023-04-14T13:00:00Z", @@ -159,7 +159,7 @@ test("comparison, should fill in missing intervals, America/Argentina/Buenos_Air const result = prepareTimeSeries( original, comparison, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "America/Argentina/Buenos_Aires", "2023-04-14T10:00:00Z", "2023-04-14T13:00:00Z", @@ -196,7 +196,7 @@ test("should include original records", () => { const result = prepareTimeSeries( original, null, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "UTC", "2020-01-01T00:00:00Z", "2020-01-01T01:00:00Z" @@ -230,7 +230,7 @@ test("should include comparison records", () => { const result = prepareTimeSeries( original, comparison, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "UTC", "2020-01-01T00:00:00Z", "2020-01-01T01:00:00Z", @@ -268,7 +268,7 @@ test("should include comparison records", () => { const result = prepareTimeSeries( original, comparison, - { label: "hour", duration: Period.HOUR }, + ({ label: "hour", duration: Period.HOUR }), "UTC", "2020-01-01T00:00:00Z", "2020-01-01T01:00:00Z",