Skip to content

Commit d4b1769

Browse files
Merge pull request #4432 from qburst/issue-4431/fix/isYearDisabled-exclude-dates
Fix #4431: Update the excludedDate to match the year to check of the isYearDisabled
2 parents dc8dbc7 + cc3cf42 commit d4b1769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/date_utils_test.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ describe("date_utils", () => {
580580
});
581581

582582
it("should be disabled if in excluded dates", () => {
583-
const day = newDate();
583+
const day = newDate(`${year}-02-01`);
584584
expect(isYearDisabled(year, { excludeDates: [day] })).toBe(true);
585585
});
586586

0 commit comments

Comments
 (0)