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

test: update test to use common.fail #9900

Conversation

jaybrownlee
Copy link

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

use common.fail instead of assert(false)
also changes var to let & const as appropriate

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@mscdex mscdex added the vm Issues and PRs related to the vm subsystem. label Dec 1, 2016
Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM, but the commit message is only partially accurate.

@jaybrownlee
Copy link
Author

What could i add to the commit message to make it more accurate?

@cjihrig
Copy link
Contributor

cjihrig commented Dec 1, 2016

Most of the body is fine. It's just the first line. Maybe just test: refactor test-vm-syntax-error-stderr.js (as long as it stays under 50 characters).

@imyller imyller added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Dec 1, 2016
@imyller
Copy link
Member

imyller commented Dec 1, 2016

@jaybrownlee You should format the commit message as described in CONTRIBUTING guidelines.

use common.fail instead of assert(false)
change var to let or const as appropriate
@jaybrownlee jaybrownlee force-pushed the update-test-vm-syntax-error-stderr branch from 79bb484 to 8dc87b6 Compare December 1, 2016 16:34
@jaybrownlee
Copy link
Author

commit message updated as suggested

@imyller
Copy link
Member

imyller commented Dec 1, 2016

@jaybrownlee Thank you. Looks good 👍

@gibfahn
Copy link
Member

gibfahn commented Dec 2, 2016

jasnell pushed a commit that referenced this pull request Dec 5, 2016
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: #9900
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

jasnell commented Dec 5, 2016

Landed in fa22854. Thank you for the PR and for participating in the code-and-learn!

@jasnell jasnell closed this Dec 5, 2016
Fishrock123 pushed a commit that referenced this pull request Dec 5, 2016
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: #9900
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@Fishrock123 Fishrock123 mentioned this pull request Dec 5, 2016
2 tasks
addaleax pushed a commit to addaleax/node that referenced this pull request Dec 8, 2016
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: nodejs#9900
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
jmdarling pushed a commit to jmdarling/node that referenced this pull request Dec 8, 2016
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: nodejs#9900
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 20, 2016
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: #9900
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 21, 2016
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: #9900
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 21, 2016
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: #9900
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
This was referenced Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. test Issues and PRs related to the tests. vm Issues and PRs related to the vm subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants