From f294370f880aef17eb446ce01ac888a5ad5fecd7 Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Mon, 3 Feb 2025 12:02:24 -0500 Subject: [PATCH] Fixed unit test --- tests/javascripts/activityChart.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/javascripts/activityChart.test.js b/tests/javascripts/activityChart.test.js index 168e69c62..e98737e95 100644 --- a/tests/javascripts/activityChart.test.js +++ b/tests/javascripts/activityChart.test.js @@ -199,7 +199,9 @@ test('Fetches data and creates chart and table correctly', async () => { const data = await fetchData('service'); - expect(global.fetch).toHaveBeenCalledWith(`/services/${currentServiceId}/daily-stats.json`); + expect(global.fetch).toHaveBeenCalledWith( + `/services/${currentServiceId}/daily-stats.json?timezone=UTC` + ); expect(data).toEqual(mockResponse); const labels = Object.keys(mockResponse).map(dateString => {