Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/test/calendar_test.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,17 @@ describe("Calendar", () => {
});

it("should not have previous month button when selecting a date in the second month, when min date is specified", () => {
const minDate = new Date("2024-11-06");
const maxDate = new Date("2025-01-01");
const selectedDate = minDate;

const { container } = render(
<DatePicker
inline
monthsShown={2}
minDate={new Date("2024-11-06")}
maxDate={new Date("2025-01-01")}
selected={selectedDate}
minDate={minDate}
maxDate={maxDate}
/>,
);

Expand Down
Loading