Skip to content

Commit 6f21d29

Browse files
committed
Add test for exactly midnight (passes)
1 parent e231337 commit 6f21d29

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ test("can format early noon with minutes other than 00", () =>
2222

2323
test("can format time between midnight and 1 am", () =>
2424
assert.equal(formatAs12HourClock("00:15"), "12:15 am"));
25+
26+
test("can format exactly midnight", () =>
27+
assert.equal(formatAs12HourClock("00:00"), "12:00 am"));

0 commit comments

Comments
 (0)