Skip to content

Commit 5b2f732

Browse files
committed
Fix errors in tests
1 parent 9e863c5 commit 5b2f732

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test("can correctly convert morning time", function () {
1111
});
1212

1313
test("can correctly convert time after 12 with minutes that are not 00", function () {
14-
assert.equal(formatAs12HourClock("23:46"), "23:46 pm");
14+
assert.equal(formatAs12HourClock("23:46"), "11:46 pm");
1515
});
1616

1717
test("can correctly convert noon time as 12pm", function () {
@@ -67,7 +67,7 @@ test("can correctly reject time with text after", function () {
6767
});
6868

6969
test("can correctly convert time using . as time separator", function () {
70-
assert.equal(formatAs12HourClock("01.30"), "1:30 am");
70+
assert.equal(formatAs12HourClock("01.30"), "01:30 am");
7171
});
7272

7373
test("can correctly convert time after 12 using . as time separator", function () {
@@ -82,10 +82,6 @@ test("can correctly convert time after using one digit for hour and . for time s
8282
assert.equal(formatAs12HourClock("3.30"), "03:30 am");
8383
});
8484

85-
test("can correctly convert time after using one digit for hour and . for time separator", function () {
86-
assert.equal(formatAs12HourClock("3.30"), "03:30 am");
87-
});
88-
8985
test("can correctly reject time using both . and :", function () {
9086
assert.equal(formatAs12HourClock("12.30:45"), "Not a valid time");
9187
});

0 commit comments

Comments
 (0)