fix broken spec

This commit is contained in:
Sergio Crisostomo 2018-02-02 09:30:34 +01:00
parent 5092777d17
commit 7d6ea205db

View file

@ -20,7 +20,7 @@ describe('DatePicker.vue', () => {
return !prevMonth && !nextMonth; return !prevMonth && !nextMonth;
}); });
const today = new Date(); 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); expect(daysInCurrentMonth).to.equal(calendarCells.length);
done(); done();
}); });