fix broken spec
This commit is contained in:
parent
5092777d17
commit
7d6ea205db
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue