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): enhanced grammer and flexibility in tests to accommodate any valid response #53786
Conversation
…date any valid response
Hey @aaqib605 Thank you for opening this pull request and being eager to contribute. You have already another PR, which will be merged, for issue limited to the "first time" code contributors to this repository. Let's leave this issue one for other first timers. Because of that I'm going to close this PR. We would welcome future pull requests from you. Thank you and happy coding. |
@gikf I appreciate your consideration and I look forward to contributing in the future. Thank you again and have a great day! |
Hmm, welp 🤦♂️ . You are right @srikanth-kandi, thanks! @aaqib605 my apologies. |
@gikf Never mind. Happens to the best of us. Happy to contribute. |
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second test only passes if the condition is userData?.currentSong === null || userData?.currentSong.id !== song.id
.
Can you try and look into that too?
…date any valid response
@Ksound22 Done. Now the tests work for all possible code variations. |
c97393a
to
8c5295f
Compare
…29-of-music-player-project
No. The second test is not reached anymore for the three possible conditions from the issue |
…29-of-music-player-project
…29-of-music-player-project
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Outdated
Show resolved
Hide resolved
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Outdated
Show resolved
Hide resolved
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Outdated
Show resolved
Hide resolved
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Outdated
Show resolved
Hide resolved
@aaqib605 Unfortunately I'm not seeing any new commits on the PR branch: https://github.com/freeCodeCamp/freeCodeCamp/pull/53786/commits Please make sure they are pushed to the right branch. Join us in our chat room or the forum if you need help with it, our moderators will guide you through this. |
@gikf I have asked for help on discord. However i want to know that my PR branch and my forked repositories' main branche are aligned, and the code is functioning as expected. What might be causing the delay in merging the pull request? |
the pull request is not ready to be merged, you need to make changes to the branch to make the tests work correctly |
Could you please take a look at the freeCodeCamp discord forum, asked for help there |
Should i just make a new PR? |
I think you should. |
2710112
to
b5a53a2
Compare
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Show resolved
Hide resolved
…-player-project' of https://github.com/aaqib605/freecodecamp into pr/aaqib605/53786-1
…nto pr/aaqib605/53786-1
Hey @ilenia-magoni 👋🏽 Thanks for requesting I review this again. It's now okay with me. Could you please take a look at it yourself and approve it? This took a lot of time, so I think it needs an extra eye. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for not giving up on this, @aaqib605!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it works as requested! Sorry for the noise
I have a little point to make:
undefined === null
is false
So userData?.currentSong === undefined
should not actually pass
I would like to thank everybody for their support. |
@ilenia-magoni Could you please explain this in more detail, like how it affects the solution? |
The condition for the if statement is to check if |
HI @aaqib605 ! It looks like there is one last change requested for this PR left in this comment here It could make that change, then we should be good to go with this PR 👍 |
Thanks, everybody for the patience, I am working to implement this little change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be the solution for my last review
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Outdated
Show resolved
Hide resolved
.../learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md
Outdated
Show resolved
Hide resolved
This PR seems to make similar changes as an existing PR. As such, we are going to close this as a duplicate. If you feel you have additional changes to expand upon this PR, please feel free to push your commits and request this PR be reopened. Thanks again! 😊 If you have any questions, feel free to ask questions on the "Contributors" category on our forum or the contributors chat room. |
Checklist:
main
branch of freeCodeCamp.Closes #53700