Skip to content

Commit 6bece94

Browse files
author
russom
committed
Write test for 24:00 and 12:00am
1 parent 3eee2ad commit 6bece94

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎Sprint-3/5-stretch-extend/format-time.js‎

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

0 commit comments

Comments
 (0)