Skip to content

Commit

Permalink
Add test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MathyouMB committed Jun 29, 2024
1 parent a8b2a08 commit da8688c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/items/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion test/items/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ describe("filterForTwentyFourHours", () => {
const item3 = itemFactory({ dueDate: dayAfterTomorrow });

const result = filterForTwentyFourHours([item1, item2, item3]);

expect(result).toEqual([item1, item2]);
});
});
Expand Down

0 comments on commit da8688c

Please sign in to comment.