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: change var to const and add mustCall in crypto tests #9954

Closed

Conversation

harishtejwani
Copy link
Contributor

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

test: change var to const and add mustCall in crypto tests. Did not add mustCall on process exit

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@imyller imyller added code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. crypto Issues and PRs related to the crypto subsystem. labels Dec 1, 2016
@mscdex
Copy link
Contributor

mscdex commented Dec 1, 2016

First line of commit is too long, see the commit message guidelines here.

Copy link
Contributor

@princejwesley princejwesley left a comment

Choose a reason for hiding this comment

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

Commit message is too long. keep it short as per the guideline!


if (!common.hasCrypto) {
common.skip('missing crypto');
process.exit();
}
var tls = require('tls');
const tls = require('tls');
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like an extra space here.

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

LGTM with formatting nits addressed.

@Trott
Copy link
Member

Trott commented Dec 22, 2016

Ping @harishtejwani: Can you remove the extra space identified by @cjihrig?

@harishtejwani
Copy link
Contributor Author

harishtejwani commented Dec 22, 2016 via email

@Trott
Copy link
Member

Trott commented Dec 23, 2016

@harishtejwani Because it was such a small change (remove one space character), I went ahead and did it for you and force pushed to your branch.

@cjihrig Can you update your review if appropriate? Thanks!

@Trott
Copy link
Member

Trott commented Dec 23, 2016

Trott pushed a commit to Trott/io.js that referenced this pull request Dec 24, 2016
change var to const and add mustCall

PR-URL: nodejs#9954
Reviewed-By: Prince John Wesley <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@Trott
Copy link
Member

Trott commented Dec 24, 2016

Landed in 0ff69b4.
Thanks for the contribution! 🎉

@Trott Trott closed this Dec 24, 2016
targos pushed a commit that referenced this pull request Dec 26, 2016
change var to const and add mustCall

PR-URL: #9954
Reviewed-By: Prince John Wesley <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Dec 27, 2016
evanlucas pushed a commit that referenced this pull request Jan 3, 2017
change var to const and add mustCall

PR-URL: #9954
Reviewed-By: Prince John Wesley <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
evanlucas pushed a commit that referenced this pull request Jan 4, 2017
change var to const and add mustCall

PR-URL: #9954
Reviewed-By: Prince John Wesley <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
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. crypto Issues and PRs related to the crypto subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants