Skip to content

Commit d5ea319

Browse files
add some more test for check
1 parent 710770b commit d5ea319

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎format-clock-edge-cases/timeConverter.test.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,11 @@ test("can correctly convert minutes", function () {
1919
});
2020

2121
test("can correctly convert noon", function () {
22-
assert.equal(formatAs12HourClock("12:30"), "12:30 pm");
22+
assert.equal(formatAs12HourClock("12:00"), "12:00 pm");
23+
});
24+
test("can correctly convert noon", function () {
25+
assert.equal(formatAs12HourClock("11:59"), "11:59 am");
26+
});
27+
test("can correctly convert one hour after noon", function () {
28+
assert.equal(formatAs12HourClock("13:00"), "01:00 pm");
2329
});

0 commit comments

Comments
 (0)