From 62e75d5fe36d40455f968a88f72880a29a8ef087 Mon Sep 17 00:00:00 2001 From: Cihan Cimen Date: Wed, 30 Oct 2024 10:27:23 -0700 Subject: [PATCH] Add logging --- __tests__/retail_calendar.test.ts | 2 ++ 1 file changed, 2 insertions(+) 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])