Skip to content

Commit 44e08de

Browse files
committed
Task 5 Stretch-extend
1 parent 2322d4d commit 44e08de

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ console.assert(
2424
`current output: ${currentOutput2}, target output: ${targetOutput2}`
2525
);
2626

27+
/* test */
28+
2729
const currentOutput3 = formatAs12HourClock("5:00");
2830
const targetOutput3 = "5:00 am";
2931
console.assert(

time.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function formatAs12HourClock() {}
2+
3+
const currentOutput = formatAs12HourClock("08:00");
4+
const targetOutput = "08:00 am";
5+
console.assert(
6+
currentOutput === targetOutput,
7+
`current output: ${currentOutput}, target output: ${targetOutput}`
8+
);

0 commit comments

Comments
 (0)