Skip to content

Commit 6fc1be1

Browse files
Test 11:59 before noon
1 parent e4d04ac commit 6fc1be1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ test("converts 12:59", () =>
2424

2525
test("converts 23:59 at night", () =>
2626
assert.equal(formatAs12HourClock("23:59"), "11:59 pm"));
27+
28+
test("converts 00:59 after midnight", () =>
29+
assert.equal(formatAs12HourClock("00:59"), "12:59 am"));
30+
31+
test("converts 11:59 before noon", () =>
32+
assert.equal(formatAs12HourClock("11:59"), "11:59 am"));

0 commit comments

Comments
 (0)