Skip to content

Conversation

@HoussamLh
Copy link

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

Changelist

This pull request for syn my fork and updating my branch.

Questions

Please, Let me know if there is anything else went wrong?

HoussamLh and others added 19 commits July 25, 2025 20:42
- Changed console.log to use address.houseNumber instead of address[0]
- Ensures correct display of house number in output
- Replaced invalid for...of loop on object with Object.values()
- Ensures all property values of author are logged without errors
- Replaced object string output with ingredients joined by newline
- Ensures each ingredient is printed on its own line as intended
- Added 'contains' function to verify if an object has a given property key.
- Handles invalid inputs gracefully by returning false.
- Added comprehensive tests for empty objects, existing/non-existing properties, and invalid inputs.
- Created 'createLookup' function file with module export.
- Added a test.todo placeholder for creating country-currency code lookup functionality.
- Setup initial structure for implementation and testing.
- Updated 'parseQueryString' to correctly parse query string values containing '=' characters.
- Added test to verify parsing of complex values like 'equation=x=y+1'.
- Ensured other edge cases handled appropriately.
- Implemented 'tally' function to return an object with counts of each unique item.
- Throws error for invalid inputs (non-array).
- Added tests for empty arrays, duplicate counting, and invalid input error throwing.
- Changed from array-style access (address[0]) to object property access (address.houseNumber)
- Logs the house number correctly now
- Replaced invalid for...of loop over object with Object.values() to log all property values
- Added a for loop to print each ingredient on its own line
- Improved readability of recipe output
- Replaced incorrect property assignment with dynamic key
- Added tests for numeric and string values, and edge cases
- Converted coin keys (e.g. "1p") to numeric values before multiplication
- Fixed issue where multiplying string by number caused NaN result
- Added tests to verify correct total calculation and empty till case
- test case for handle large quantities
@HoussamLh HoussamLh added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 7, 2025
@cjyuan
Copy link
Contributor

cjyuan commented Sep 7, 2025

This branch is not clean. I have left you suggestion to fix the problem in your other PR.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 7, 2025
@github-actions
Copy link

github-actions bot commented Sep 7, 2025

Your PR couldn't be matched to an assignment in this module.

Please check its title is in the correct format, and that you only have one PR per assignment.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

1 similar comment
@github-actions
Copy link

github-actions bot commented Sep 7, 2025

Your PR couldn't be matched to an assignment in this module.

Please check its title is in the correct format, and that you only have one PR per assignment.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@HoussamLh HoussamLh closed this by deleting the head repository Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants