Skip to content

Commit 26dd684

Browse files
author
Enice-Codes
committed
corrected time formate
1 parent 23a6152 commit 26dd684

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Sprint-2/5-stretch-extend/format-time.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function formatAs12HourClock(time) {
2424

2525
// Existing tests
2626
console.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

3131
console.assert(
@@ -37,8 +37,8 @@ console.assert(
3737

3838
// Midnight
3939
console.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
5757
console.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

0 commit comments

Comments
 (0)