mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-15 07:18:58 -04:00
Fixed unit test
This commit is contained in:
@@ -199,7 +199,9 @@ test('Fetches data and creates chart and table correctly', async () => {
|
|||||||
|
|
||||||
const data = await fetchData('service');
|
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);
|
expect(data).toEqual(mockResponse);
|
||||||
|
|
||||||
const labels = Object.keys(mockResponse).map(dateString => {
|
const labels = Object.keys(mockResponse).map(dateString => {
|
||||||
|
|||||||
Reference in New Issue
Block a user