Commit 7d6ea205db5d90676d39fc08fb78c31128e53666

Authored by Sergio Crisostomo
1 parent 5092777d

fix broken spec

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/specs/date-picker.spec.js
... ... @@ -20,7 +20,7 @@ describe('DatePicker.vue', () => {
20 20 return !prevMonth && !nextMonth;
21 21 });
22 22 const today = new Date();
23   - const daysInCurrentMonth = new Date(today.getFullYear(), today.getMonth(), 0).getDate();
  23 + const daysInCurrentMonth = new Date(today.getFullYear(), today.getMonth() + 1, 0).getDate();
24 24 expect(daysInCurrentMonth).to.equal(calendarCells.length);
25 25 done();
26 26 });
... ...