diff --git a/__tests__/retail_calendar.test.ts b/__tests__/retail_calendar.test.ts index f944138..c912d0c 100644 --- a/__tests__/retail_calendar.test.ts +++ b/__tests__/retail_calendar.test.ts @@ -69,6 +69,7 @@ describe('RetailCalendar', () => { }) it('addLeapWeekTo is respected for 0..11 values', () => { + console.log(new Date()) const range = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] for (const addLeapWeekToMonth of range) { const calendar = new RetailCalendarFactory({ @@ -82,6 +83,7 @@ describe('RetailCalendar', () => { const expectedMonthLengthsInWeeks = [4, 4, 5, 4, 4, 5, 4, 4, 5, 4, 4, 5] for (const monthIndex of range) { if (monthIndex === addLeapWeekToMonth) { + console.log(monthIndex, expectedMonthLengthsInWeeks[monthIndex], calendar.weeks.length) expect(calendar.months[monthIndex].weeks.length).toEqual(expectedMonthLengthsInWeeks[monthIndex] + 1) } else { expect(calendar.months[monthIndex].weeks.length).toEqual(expectedMonthLengthsInWeeks[monthIndex])