Skip to content

Commit 2fa8c14

Browse files
committed
Write tests for hours before midnight and midday
1 parent 5225f24 commit 2fa8c14

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ test("can correctly convert morning time", function () {
1212

1313
test("can correctly convert minutes", () =>
1414
assert.equal(formatAs12HourClock("13:30"), "01:30 pm"));
15+
16+
test("can correctly convert hours before midnight", () =>
17+
assert.equal(formatAs12HourClock("23:59"), "11:59 pm"));
18+
19+
test("can correctly convert hours before midday", () =>
20+
assert.equal(formatAs12HourClock("11:59"), "11:59 am"));

0 commit comments

Comments
 (0)