Skip to content

Manchester | 26-ITP-Sep | Gustarv Nchitu | Sprint 1 | Format Clock Edge Cases - #1671

Open
Jestavo1 wants to merge 2 commits into
CodeYourFuture:mainfrom
Jestavo1:format-clock-edge-cases
Open

Jestavo1 wants to merge 2 commits into
CodeYourFuture:mainfrom
Jestavo1:format-clock-edge-cases

Conversation

@Jestavo1

@Jestavo1 Jestavo1 commented Oct 9, 2026

Copy link
Copy Markdown

No description provided.

@Jestavo1 Jestavo1 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 9, 2026
@hackertainment hackertainment added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Oct 11, 2026
Comment on lines +19 to +24
test("correctly convert 13:00", function() {
assert.equal(formatAs12HourClock("13:00"), "1:00 pm");
});
test("correctly keep the minutes", function() {
assert.equal(formatAs12HourClock("13:45"), "1:45 pm");
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the test case in lines 9-11 provided by the question, there should be leading 0 for the hours with single digit. So please fix your code and test cases as well. Thank you.

@hackertainment hackertainment added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Oct 11, 2026
@Jestavo1 Jestavo1 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 12, 2026
@hackertainment

Copy link
Copy Markdown

Congratulation, you have completed this PR successfully.

@hackertainment hackertainment added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants