Skip to content

Commit cfb67ae

Browse files
committed
wrote a test to convert the last minute am to pm.test success.
1 parent 3710e74 commit cfb67ae

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ test("can correctly convert time with minutes ", function () {
2525
test("can correctly convert time the end of midnight", function () {
2626
assert.equal(formatAs12HourClock("00:59"), "12:59 am");
2727
});
28-
test("can correctly convert time at the begning of noon", function () {
28+
test("can correctly convert time at the beginning of noon", function () {
2929
assert.equal(formatAs12HourClock("12:01"), "12:01 pm");
3030
});
31-
test("can correctly convert time later than midday",function(){
32-
assert.equal(formatAs12HourClock("13:01"), "01:01 pm")
33-
})
31+
test("can correctly convert time later than midday", function () {
32+
assert.equal(formatAs12HourClock("13:01"), "01:01 pm");
33+
});
34+
test("can correctly convert time the last minute am turns pm ", function(){
35+
assert.equal(formatAs12HourClock("11:59"), "11:59 am");
36+
});

0 commit comments

Comments
 (0)