Skip to content

Commit 0241153

Browse files
wrote an assertion to test for Midnight , and it failed as it current output '00:00am' instead of '12:00am'
1 parent ee0dcaf commit 0241153

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,11 @@ console.assert(
3333
currentOutput3 === targetOutput3,
3434
`current output: ${currentOutput3}, target output: ${targetOutput3}`
3535
);
36-
36+
//Testing for Midnight
37+
const currentOutput4 = formatAs12HourClock("00:00");
38+
const targetOutput4 = "12:00 am";
39+
console.assert(
40+
currentOutput4 === targetOutput4,
41+
`current output: ${currentOutput4}, targetOutput: ${targetOutput4}`
42+
);
3743

0 commit comments

Comments
 (0)