Skip to content

Commit 934dfc3

Browse files
committed
wrote a test that can convert last minute of the day .test success.
1 parent cfb67ae commit 934dfc3

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
@@ -33,4 +33,7 @@ test("can correctly convert time later than midday", function () {
3333
});
3434
test("can correctly convert time the last minute am turns pm ", function(){
3535
assert.equal(formatAs12HourClock("11:59"), "11:59 am");
36-
});
36+
});
37+
test("can correctly convert time last minute of the day" , function(){
38+
assert.equal(formatAs12HourClock("23:59"), "11:59 pm");
39+
})

0 commit comments

Comments
 (0)