Skip to content

Commit 158eba2

Browse files
committed
Added extra test for 12:01 am
1 parent 77d1ade commit 158eba2

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
@@ -26,4 +26,8 @@ test("can correctly convert time with minutes with 0 pad such as 12:04", functio
2626
test("can correctly convert time with hour being 00 to show as 12 am", function(){
2727
assert.equal(formatAs12HourClock("00:00"), "12:00 am");
2828
assert.equal(formatAs12HourClock("00:30"), "12:30 am");
29+
});
30+
31+
test("can correctly convert time with just after midnight to still show 12 am with minutes added", function(){
32+
assert.equal(formatAs12HourClock("00:01"), "12:01 am");
2933
});

0 commit comments

Comments
 (0)