Skip to content

Commit c302acb

Browse files
committed
Add test for daysLeft function to verify today's date calculation
1 parent 066ae04 commit c302acb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ describe("daysLeft()", () => {
168168
test("Future date", () => {
169169
expect(Todos.daysLeft("2026-11-15", today)).toBe(3);
170170
});
171+
test("Today", () => {
172+
expect(Todos.daysLeft("2026-11-12", today)).toBe(0);
173+
});
171174
});
172175

173176
describe("addTask() with deadline", () => {

0 commit comments

Comments
 (0)