Skip to content

Commit cae676c

Browse files
wrote an Assertion to test Mid-day , which failed
1 parent 5ec6dee commit cae676c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,12 @@ console.assert(
2323
currentOutput2 === targetOutput2,
2424
`current output: ${currentOutput2}, target output: ${targetOutput2}`
2525
);
26+
// testing for noon @ "12:00"
27+
const currentOutput3 = formatAs12HourClock("12:00");
28+
const targetOutput3 = "12:00 pm";
29+
console.assert(
30+
currentOutput3 === targetOutput3,
31+
`current output: ${currentOutput3}, target output: ${targetOutput3}`
32+
);
2633

2734

0 commit comments

Comments
 (0)