File tree Expand file tree Collapse file tree
Sprint-2/5-stretch-extend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ function formatAs12HourClock(time) {
2424
2525// Existing tests
2626console . assert (
27- formatAs12HourClock ( "08 :00" ) === "08 :00 am" ,
28- "08 :00 should be 08 :00 am"
27+ formatAs12HourClock ( "8 :00" ) === "8 :00 am" ,
28+ "8 :00 should be 8 :00 am"
2929) ;
3030
3131console . assert (
@@ -37,8 +37,8 @@ console.assert(
3737
3838// Midnight
3939console . assert (
40- formatAs12HourClock ( "00 :00" ) === "12:00 am" ,
41- "00 :00 should be 12:00 am"
40+ formatAs12HourClock ( "0 :00" ) === "12:00 am" ,
41+ "0 :00 should be 12:00 am"
4242) ;
4343
4444// Noon
@@ -55,8 +55,8 @@ console.assert(
5555
5656// AM with minutes
5757console . assert (
58- formatAs12HourClock ( "09 :45" ) === "09 :45 am" ,
59- "09 :45 should be 09 :45 am"
58+ formatAs12HourClock ( "9 :45" ) === "9 :45 am" ,
59+ "9 :45 should be 9 :45 am"
6060) ;
6161
6262// Last minute of the day
You can’t perform that action at this time.
0 commit comments