Skip to content

Commit 42d563c

Browse files
committed
test: add test case for preserving non-zero minutes
1 parent 03c860b commit 42d563c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ test("converts last minute of the day", () => {
3535
})
3636
test("preserves minutes with leading zero", () => {
3737
assert.equal(formatAs12HourClock("09:05"), "9:05am");
38+
})
39+
test("preserves non-zero minutes", () => {
40+
assert.equal(formatAs12HourClock("14:45"), "2:45pm");
3841
})

0 commit comments

Comments
 (0)