Skip to content

London | May-2025 | KhilolaRustamova |Mdg/sprint 2 #589

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

HilolaRustam
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with REGION | COHORT_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@HilolaRustam HilolaRustam added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Participant to add when requesting review labels Jul 12, 2025
@AdnanGondal AdnanGondal self-requested a review July 19, 2025 10:58
@AdnanGondal AdnanGondal added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Jul 19, 2025

Choose a reason for hiding this comment

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

Great explanations and solutions for the debug section - well done.

Choose a reason for hiding this comment

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

Perhaps it would be better to add different edge cases to these tests such as what happens when:

  • Empty input
  • When there are duplicate keys
  • When a pair has extra values, such as createLookup([["UK", "GBP", "Extra"]])).

Copy link
Author

Choose a reason for hiding this comment

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

i added some more test cases.

Choose a reason for hiding this comment

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

A great set of test cases. Just had one question.
What do you expect to happen when you run parseQueryString("a=1&&b=2").
Can you add a test case for it?

Copy link
Author

Choose a reason for hiding this comment

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

test is going to look like this.
test("parses multiple key-value pairs", () => {
expect(parseQueryString("a=1&&b=2")).toEqual({ a: "1", "", b: "2" });
});

Copy link

@AdnanGondal AdnanGondal left a comment

Choose a reason for hiding this comment

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

A great submission - but I have added some comments regarding additional test cases. Once done, let me know and I will mark as Complete.

@AdnanGondal AdnanGondal added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 19, 2025
@HilolaRustam HilolaRustam added Needs Review Participant to add when requesting review and removed Reviewed Volunteer to add when completing a review labels Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Participant to add when requesting review 📅 Sprint 2 Assigned during Sprint 2 of this module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants