Skip to content

Commit

Permalink
Merge pull request #4432 from qburst/issue-4431/fix/isYearDisabled-ex…
Browse files Browse the repository at this point in the history
…clude-dates

Fix #4431: Update the excludedDate to match the year to check of the isYearDisabled
  • Loading branch information
martijnrusschen authored Jan 2, 2024
2 parents dc8dbc7 + cc3cf42 commit d4b1769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/date_utils_test.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ describe("date_utils", () => {
});

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

Expand Down

0 comments on commit d4b1769

Please sign in to comment.