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): grammar issues and updated test in step 29 of music player project #53913

Closed
wants to merge 6 commits into from

Conversation

RGHANILOO
Copy link
Contributor

@RGHANILOO RGHANILOO commented Feb 28, 2024

Checklist:

@jdwilkin4
Copy link
Contributor

jdwilkin4 commented Feb 29, 2024

Hi @RGHANILOO !

It looks like there are a couple of issues with this PR.

The first issue is that your current PR doesn't have any files changed
Screenshot 2024-02-28 at 4 03 54 PM

Please push up another commit to add the changes you want to make so a review can be done.

The second issue is the PR title. It isn't clear what these changes are about.
It is best to use descriptive PR titles so matinainers know what the PR's are about.

A good title would be the following:

fix(curriculum): fix grammar issues and updated tests in step 29 of music player project

once those changes are applied, then we can properly review your PR 👍
If you need help with these changes, then please reach out on the contributors channel on discord or the contributors subforum. 👍

@jdwilkin4 jdwilkin4 added new javascript course These are for issues dealing with the new JS curriculum status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP labels Feb 29, 2024
@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Feb 29, 2024
@RGHANILOO RGHANILOO changed the title Test fix mp fix(curriculum): grammar issues and updated test in step 29 of music player project Feb 29, 2024
@RGHANILOO
Copy link
Contributor Author

Hi

Thanks @jdwilkin4 for your feedback.
not sure what happened the first time round, i have now made the necessary changes again as highlighted.
Thanks

@jdwilkin4
Copy link
Contributor

@RGHANILOO

It looks like some the tests are failing.
Can you please look into that?
It looks like the issue has to deal with the changes you made to one of the tests for the music player

@RGHANILOO
Copy link
Contributor Author

@RGHANILOO

It looks like some the tests are failing. Can you please look into that? It looks like the issue has to deal with the changes you made to one of the tests for the music player

Hey @jdwilkin4 ,
i have made the appropriate changes based on a suggestion on another PR on this issue that satisfies all the described conditions.

Copy link
Member

@gikf gikf left a comment

Choose a reason for hiding this comment

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

Second test also needs to be changed, to add more lenient regex to it as well.

@gikf
Copy link
Member

gikf commented Mar 4, 2024

@RGHANILOO, sorry, I should be more clear. The second test is this one:

You should set `audio.currentTime` to `0` inside your `if` block.
```js
assert.match(code, /if\s*\(\s*userData\?\.currentSong\s*===\s*null\s*\|\|\s*userData\?\.currentSong\.id\s*!==\s*song\.id\s*\)\s*\{\s*audio\.currentTime\s*=\s*0\s*;?\s*\}/)
```

Without updating it with similar pattern as first one, it will be able for condition that passes first test not pass second.

…a-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/653639d63a45a077333312c8.md

Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
@jdwilkin4 jdwilkin4 requested a review from gikf April 8, 2024 14:37
@jdwilkin4 jdwilkin4 added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. and removed status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP labels Apr 15, 2024
@jdwilkin4
Copy link
Contributor

jdwilkin4 commented Apr 17, 2024

It looks like the steps have been updated and the changes should now be updated to step 38. not step 32.
I am going to close this PR.

I would suggest you do following:

  • delete this branch
  • update your main branch with the latest changes
  • create a new branch
  • create a new fresh PR with these changes and we will be happy to review that 👍

@jdwilkin4 jdwilkin4 closed this Apr 17, 2024
@RGHANILOO RGHANILOO deleted the testFixMp branch April 17, 2024 23:25
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

3 participants