-
-
Notifications
You must be signed in to change notification settings - Fork 220
London | 25-ITP-May | Houssam Lahlah | Sprint 2 | Course work sprint 2 #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 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
|
This branch is not clean. I have left you suggestion to fix the problem in your other PR. |
|
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
|
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). |
Self checklist
Changelist
This pull request for syn my fork and updating my branch.
Questions
Please, Let me know if there is anything else went wrong?