Skip to content

test: update test to use common.fail - #9900

Closed
jaybrownlee wants to merge 1 commit into
nodejs:masterfrom
jaybrownlee:update-test-vm-syntax-error-stderr
Closed

test: update test to use common.fail#9900
jaybrownlee wants to merge 1 commit into
nodejs:masterfrom
jaybrownlee:update-test-vm-syntax-error-stderr

Conversation

@jaybrownlee

Copy link
Copy Markdown
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-botnodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@mscdexmscdex added the vm Issues and PRs related to the vm subsystem. label Dec 1, 2016

@cjihrigcjihrig left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Author

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

@cjihrig

Copy link
Copy Markdown
Contributor

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).

@imyllerimyller 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
Copy Markdown
Member

@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
jaybrownleeforce-pushed the update-test-vm-syntax-error-stderr branch from 79bb484 to 8dc87b6CompareDecember 1, 2016 16:34
@jaybrownlee

Copy link
Copy Markdown
Author

commit message updated as suggested

@imyller

Copy link
Copy Markdown
Member

@jaybrownlee Thank you. Looks good 👍

@gibfahn

Copy link
Copy Markdown
Member

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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell

Copy link
Copy Markdown
Member

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

@jasnelljasnell 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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@Fishrock123Fishrock123 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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This was referenced Dec 21, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.testIssues and PRs related to the tests.vmIssues and PRs related to the vm subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@jaybrownlee@cjihrig@imyller@gibfahn@jasnell@lpinca@mscdex@MylesBorins@addaleax@nodejs-github-bot