Skip to content

Commit 2c38ec5

Browse files
committed
added edge case test for 1 minute before midnight
1 parent be8c392 commit 2c38ec5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ test("correctly convert 12:00 pm", function () {
4949
test("correctly convert 1 minute before 12:00pm", function () {
5050
assert.equal(formatAs12HourClock("11:59"), "11:59 am");
5151
});
52+
53+
test("correctly convert 1 minute before midnight", function () {
54+
assert.equal(formatAs12HourClock("23:59"), "11:59 pm");
55+
});

0 commit comments

Comments
 (0)