Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
riddhybansal committed May 8, 2024
1 parent 455529f commit b6cec32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/components/DatePicker/DatePicker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ describe('DatePicker', () => {
fireEvent.change(endDateInput, { target: { value: '01/07/2023' } });
// Simulate a click event outside the datepicker
fireEvent.click(document.body);
fireEvent.focus(startDateInput);
fireEvent.click(document.body);
expect(handleChange).not.toHaveBeenCalled();
});

Expand Down

0 comments on commit b6cec32

Please sign in to comment.