Skip to content

Commit

Permalink
fix(date-picker): update disabled dates test to use DatePickerDate type
Browse files Browse the repository at this point in the history
  • Loading branch information
dethell committed Oct 27, 2023
1 parent 8bc4cfd commit a963bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/date-picker/test/dom/month-calendar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('vaadin-month-calendar', () => {

it('disabled dates', async () => {
monthCalendar.isDateDisabled = (date) => {
return !!(date?.getDate() % 2) ?? false;
return !!(date?.day % 2) ?? false;
};
await expect(monthCalendar).shadowDom.to.equalSnapshot();
});
Expand Down

0 comments on commit a963bd4

Please sign in to comment.