Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

fix(challenges): fixed tests to check for pre operators#222

Merged
scissorsneedfoodtoo merged 1 commit intofreeCodeCamp:devfrom
Nirajn2311:fix/update-test
Aug 18, 2018
Merged

fix(challenges): fixed tests to check for pre operators#222
scissorsneedfoodtoo merged 1 commit intofreeCodeCamp:devfrom
Nirajn2311:fix/update-test

Conversation

@Nirajn2311
Copy link
Copy Markdown
Member

Description

Increment and decrement a number challenge will now check for pre increment or decrement operators.

ISSUES CLOSED: #199

Pre-Submission Checklist

  • Your pull request targets the dev branch.
  • Branch starts with either fix/, feature/, or translate/ (e.g. fix/challenge-tests)
  • All new and existing tests pass the command npm test.
  • Use npm run commit to generate a conventional commit message.
    Learn more here: https://conventionalcommits.org/#why-use-conventional-commits
  • The changes were done locally on your machine and NOT GitHub web interface.
    If they were done on the web interface you have ensured that you are creating conventional commit messages.

Checklist:

  • Tested changes locally.
  • Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #XXXXX

Increment and decrement a number challenge
will now check for post-increment

ISSUES CLOSED: #199
@scissorsneedfoodtoo
Copy link
Copy Markdown
Contributor

@Nirajn2311, thank you for this fix! Just tested this and everything works fine.

However, @kevinsmithwebdev brings up a good point about requiring the test requiring a semicolon to pass. Would you mind updating the tests here so that's not the case? It would be good if all the tests were updated so semicolons are optional, but I know that'll be a big job. Still, we have to start somewhere, and I hope you wouldn't mind improving these tests just a little bit more.

@Nirajn2311
Copy link
Copy Markdown
Member Author

@scissorsneedfoodtoo Is it possible to update the tests for removing semicolons in another PR as some tests have been changed since this PR was made.

@scissorsneedfoodtoo scissorsneedfoodtoo merged commit ded4705 into freeCodeCamp:dev Aug 18, 2018
@scissorsneedfoodtoo
Copy link
Copy Markdown
Contributor

@Nirajn2311, of course, that's not a problem at all. In that case, everything LGTM! Thanks for the heads up and for all of your hard work.

@Nirajn2311 Nirajn2311 deleted the fix/update-test branch August 23, 2018 07:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Basic JavaScript: Increment a Number with JavaScript - fails for pre-increment

2 participants