Skip to content

Commit 1ddd306

Browse files
committed
Add test for last minute before midnight (it passes)
1 parent 461f54b commit 1ddd306

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎format-clock-edge-cases/timeConverter.test.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ test("can format exactly midnight", () =>
2727
assert.equal(formatAs12HourClock("00:00"), "12:00 am"));
2828

2929
test("can format last minute before noon", () =>
30-
assert.equal(formatAs12HourClock("11:59"), "11:59 am"));
30+
assert.equal(formatAs12HourClock("11:59"), "11:59 am"));
31+
32+
test("can format last minute before midnight", () =>
33+
assert.equal(formatAs12HourClock("23:59"), "11:59 pm"));

0 commit comments

Comments
 (0)