From 7d6ea205db5d90676d39fc08fb78c31128e53666 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Fri, 2 Feb 2018 09:30:34 +0100 Subject: [PATCH] fix broken spec --- test/unit/specs/date-picker.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/specs/date-picker.spec.js b/test/unit/specs/date-picker.spec.js index 0a440897..1961b68a 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(); });