diff --git a/test/unit/specs/date-picker.spec.js b/test/unit/specs/date-picker.spec.js index 0a44089..1961b68 100644 --- a/test/unit/specs/date-picker.spec.js +++ b/test/unit/specs/date-picker.spec.js @@ -20,7 +20,7 @@ describe('DatePicker.vue', () => { return !prevMonth && !nextMonth; }); const today = new Date(); - const daysInCurrentMonth = new Date(today.getFullYear(), today.getMonth(), 0).getDate(); + const daysInCurrentMonth = new Date(today.getFullYear(), today.getMonth() + 1, 0).getDate(); expect(daysInCurrentMonth).to.equal(calendarCells.length); done(); }); -- libgit2 0.21.4