Skip to content

Commit ab1448e

Browse files
committed
Remove redundant 'today' variable declaration in daysLeft test for non-existent date
1 parent 438dbff commit ab1448e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎Sprint-3/todo-list/todos.test.mjs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ describe("daysLeft()", () => {
175175
expect(Todos.daysLeft("2026-11-10", today)).toBe(-2);
176176
});
177177
test("Returns NaN for a date that does not exist", () => {
178-
const today = new Date(2026, 10, 16);
179178
expect(Number.isNaN(Todos.daysLeft("2026-02-31", today))).toBe(true);
180179
});
181180
});

0 commit comments

Comments
 (0)