Skip to content

London | 26-ITP-Sep | Abakar Souleyman | Sprint 1 | formatting edge cases - #1643

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

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

Conversation

@abmhts

@abmhts abmhts commented Oct 4, 2026

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-1197

Changelist

Fixed the real-minutes bug and added tests covering midnight, noon, and minute edge cases.

  • :00 now becomes ${minutes}, so "13:30" keeps its 30 minutes.
  • padStart(2, "0") ensures "01:00 pm" matches the "08:00 am" style.

@abmhts abmhts added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 4, 2026

@abdishakoor-dev abdishakoor-dev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All the requirements are met, and the function gives the right answer for every valid time I tried. Testing the first and last minute of the midnight and noon hours is good edge-case thinking.

Marking this Complete, well done.

@abdishakoor-dev abdishakoor-dev 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. labels Oct 5, 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