Skip to content

London | 26-ITP-May | D Dl | Sprint 2 | implement - #1326

Closed
Dagim-Daniel wants to merge 2 commits into
CodeYourFuture:mainfrom
Dagim-Daniel:Sprint2/implement
Closed

London | 26-ITP-May | D Dl | Sprint 2 | implement#1326
Dagim-Daniel wants to merge 2 commits into
CodeYourFuture:mainfrom
Dagim-Daniel:Sprint2/implement

Conversation

@Dagim-Daniel

Copy link
Copy Markdown

Learners, PR Template

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

sprint2 implement tasks are done

@Dagim-Daniel Dagim-Daniel added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Jul 28, 2026
expect([]).toEqual({});
});

test("for multiple country currency returns multiple lookup", () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For tests please use function createLookup since you are testing the function

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

"test("for multiple country currency returns multiple lookup", createLookup () => {" you meant to use it like this .

// Given a function called tally
// When passed an array of items
// Then it should return an object containing the count for each unique item
test("given an array of items returns an object containing the counter for each item", () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These tests compare arrays, never call tally

// When passed to tally
// Then it should throw an error
test("tally on an empty array returns an empty object", () => {
expect(() => tally("string").toThrow("Invalid input!"));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Double check the expression, it contains error

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

hi Selyafi, i have done all tasks under sprint 2 but this time i use one pr for the three section ( debug,implement and interpret)

const value = decodeURIComponent(rawValue.replace(/\+/g, " "));

// 4. Handle identical keys (stretch goal)
if (queryParams.hasOwnProperty(key)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please check https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn, a safer alternative and in the description explained why.

@Dagim-Daniel Dagim-Daniel added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 2, 2026
@Dagim-Daniel Dagim-Daniel changed the title London | 26-ITP-May | Dagim Daniel | Sprint 2 | implement London | 26-ITP-May | D Dl | Sprint 2 | implement Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

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).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 4, 2026
@Dagim-Daniel
Dagim-Daniel deleted the Sprint2/implement branch August 5, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants