Skip to content

Commit 2322d4d

Browse files
committed
Task 5 on the Stretch-extend
1 parent e4c7014 commit 2322d4d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,24 @@ console.assert(
2323
currentOutput2 === targetOutput2,
2424
`current output: ${currentOutput2}, target output: ${targetOutput2}`
2525
);
26+
27+
const currentOutput3 = formatAs12HourClock("5:00");
28+
const targetOutput3 = "5:00 am";
29+
console.assert(
30+
currentOutput3 === targetOutput3,
31+
`current output: ${currentOutput3}, target output: ${targetOutput3}`
32+
);
33+
34+
const currentOutput4 = formatAs12HourClock("240:00");
35+
const targetOutput4 = "12:00 pm";
36+
console.assert(
37+
currentOutput4 === targetOutput4,
38+
`current output: ${currentOutput4}, target output: ${targetOutput4}`
39+
);
40+
const currentOutput5 = formatAs12HourClock("00:00")
41+
const targetOutput5 = "00:00 am";
42+
console.assert(
43+
currentOutput5 === targetOutput5,
44+
`current output: ${currentOutput5}, target output: ${targetOutput5}`
45+
);
46+

0 commit comments

Comments
 (0)