Update activityChart.test.js

This commit is contained in:
Jonathan Bobel
2025-03-06 15:00:21 -05:00
parent a18f981b1c
commit 1696614995

View File

@@ -199,7 +199,7 @@ test('Fetches data and creates chart and table correctly', async () => {
const data = await fetchData('service');
expect(global.fetch).toHaveBeenCalledWith(`/services/${currentServiceId}/daily-stats.json?timezone=UTC`);
expect(global.fetch).toHaveBeenCalledWith(`/services/${currentServiceId}/daily-stats.json?timezone=America%2FNew_York`);
expect(data).toEqual(mockResponse);
const labels = Object.keys(mockResponse).map(dateString => {