Skip to content
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

fix(curriculum): prevent hardcoding pokemon #54822

Merged

Conversation

a2937
Copy link
Member

@a2937 a2937 commented May 15, 2024

Checklist:

Ref #54063

Two tests were added. One randomly generates an invalid Pokemon name and tests for a Pokemon not found response. The other test randomly generates a valid Pokemon id and compares it to the types received from our Pokemon API and sees if they match. If I had just used a few regular names, we would have to continually add new options to our generic tests. It also makes test writing a lot smoother.

@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label May 15, 2024
@Dario-DC Dario-DC added the new javascript course These are for issues dealing with the new JS curriculum label May 16, 2024
Copy link
Contributor

@ilenia-magoni ilenia-magoni left a comment

Choose a reason for hiding this comment

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

I am living a couple of wording suggestions, I never completed this project so I don't have a project to test these new tests with.

@a2937
Copy link
Member Author

a2937 commented May 17, 2024

I am living a couple of wording suggestions, I never completed this project so I don't have a project to test these new tests with.

Except there is a solution attached at the bottom of the file you can test against.

Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
@moT01 moT01 added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label May 20, 2024
Copy link
Member

@Ksound22 Ksound22 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@JoyShaheb JoyShaheb merged commit b880e02 into freeCodeCamp:main May 23, 2024
22 checks passed
@a2937 a2937 deleted the fix(curriculum)/prevent-hardcoding-pokemon branch May 23, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new javascript course These are for issues dealing with the new JS curriculum scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants