-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 var to let const in tests #9917
Conversation
In the task i was asked to also change |
That's correct. |
|
||
// spawn self as child | ||
var child = spawn(process.argv[0], [process.argv[1], 'child']); | ||
let child = spawn(process.argv[0], [process.argv[1], 'child']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this be const
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea it can & it should be . I ll Fix that now
var common = require('../common'); | ||
var assert = require('assert'); | ||
const common = require('../common'); | ||
const assert = require('assert'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: would you mind moving this require after the hasCrypto
check?
@lpinca Updated everything to your points |
var common = require('../common'); | ||
var assert = require('assert'); | ||
const common = require('../common'); | ||
const assert = require('assert'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GreenPioneer sorry to pester, this can also be moved after the hasCrypto
check.
var common = require('../common'); | ||
var assert = require('assert'); | ||
const common = require('../common'); | ||
const assert = require('assert'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Hey @lpinca its all good, Id rather do it right. Let me know if there is anything else you want done on these files. |
@GreenPioneer Awesome, LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @GreenPioneer, if you would, please squash the commits down to either a single commit or one commit per file changed. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM with commits squashed.
Also updating assertStrict and moving the assert required.
All Squashed |
Also updating assertStrict and moving the assert required. PR-URL: #9917 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Landed in a1bd070. Thank you for the PR and for participating in the code-and-learn! |
@Fishrock123 & @jasnell thank you for helping me out at the event. Really enjoyed it !!! |
Also updating assertStrict and moving the assert required. PR-URL: #9917 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Also updating assertStrict and moving the assert required. PR-URL: nodejs#9917 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Also updating assertStrict and moving the assert required. PR-URL: #9917 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
Test - test/parallel/test-tis-on-empty-socket
Description of change
Updated the var to const and lets in test-tis-on-empty-socket. This is coming from node interactive - code & learn