Skip to content

Commit 68d0b4c

Browse files
committed
added and removed a few tests
1 parent 379bec4 commit 68d0b4c

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ test("correctly convert time after 12:00 ", function () {
1414
assert.equal(formatAs12HourClock("14:00"), "02:00 pm");
1515
});
1616

17-
test("correctly convert time after 12:00 ", function () {
18-
assert.equal(formatAs12HourClock("21:00"), "09:00 pm");
19-
});
20-
21-
test("correctly convert time after 12:00 ", function () {
22-
assert.equal(formatAs12HourClock("16:00"), "04:00 pm");
17+
test("converts 23:59 to 11:59 ", function () {
18+
assert.equal(formatAs12HourClock("23:59"), "11:59 pm");
2319
});
2420

25-
test("correctly convert time after 12:00 ", function () {
26-
assert.equal(formatAs12HourClock("19:00"), "07:00 pm");
21+
test("converts 12:01 to 12:01 ", function () {
22+
assert.equal(formatAs12HourClock("12:01"), "12:01 pm");
2723
});
2824

2925
test("converts 23:59 to 11:59 ", function () {
3026
assert.equal(formatAs12HourClock("23:59"), "11:59 pm");
3127
});
3228

33-
test("converts 12:01 to 12:01 ", function () {
34-
assert.equal(formatAs12HourClock("12:01"), "12:01 pm");
29+
test("can convert 00:34 to 12:34 am ", function () {
30+
assert.equal(formatAs12HourClock("00:34"), "12:34 am");
31+
});
32+
33+
test("converts 12:00 to 12:00 pm ", function () {
34+
assert.equal(formatAs12HourClock("12:00"), "12:00 pm");
3535
});

0 commit comments

Comments
 (0)