Skip to content

Commit bf37a05

Browse files
Fix tests
1 parent 3b34d02 commit bf37a05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: locust/webui/src/components/StateButtons/tests/ResetButton.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ describe('ResetButton', () => {
2323
});
2424

2525
expect(resetStats).toHaveBeenCalled();
26-
expect(resetStats).toBeCalledWith('stats/reset');
26+
expect(resetStats).toBeCalledWith('stats/reset', undefined);
2727
});
2828
});

Diff for: locust/webui/src/components/StateButtons/tests/StopButton.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('StopButton', () => {
2525
expect(getByText('Loading')).toBeTruthy();
2626

2727
expect(resetStats).toHaveBeenCalled();
28-
expect(resetStats).toBeCalledWith('stop');
28+
expect(resetStats).toBeCalledWith('stop', undefined);
2929
rerender(<StopButton />);
3030
expect(queryByText('Loading')).toBeFalsy();
3131
});

0 commit comments

Comments
 (0)