Skip to content

Commit ab3e5fa

Browse files
committed
added a test that coverts time at the end of midnight 00:59. test failed.
1 parent edf5168 commit ab3e5fa

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
@@ -23,4 +23,8 @@ test("can correctly convert midday ", function(){
2323
test("can correctly convert time with minutes ", function(){
2424
assert.equal( formatAs12HourClock("12:45"), "12:45 pm")
2525

26+
})
27+
28+
test("can correctly convert time the end of midnight",function(){
29+
assert.equal(formatAs12HourClock("00:59"),"12:59 am" )
2630
})

0 commit comments

Comments
 (0)