diff --git a/src/items/index.ts b/src/items/index.ts index aa31d9b..af6de3f 100644 --- a/src/items/index.ts +++ b/src/items/index.ts @@ -74,7 +74,7 @@ export const filterForUrgentItems = (items: Item[]) => { //due the next day export const filterForTwentyFourHours = (items: Item[]) => { const tomorrow = new Date(); - tomorrow.setDate(tomorrow.getDate() + 2); + tomorrow.setDate(tomorrow.getDate() + 1); return items.filter((item) => { if (!item.dueDate) { diff --git a/test/items/index.test.ts b/test/items/index.test.ts index 125ce48..5641be4 100644 --- a/test/items/index.test.ts +++ b/test/items/index.test.ts @@ -113,7 +113,6 @@ describe("filterForTwentyFourHours", () => { const item3 = itemFactory({ dueDate: dayAfterTomorrow }); const result = filterForTwentyFourHours([item1, item2, item3]); - expect(result).toEqual([item1, item2]); }); });