test: refactor test to use latest standards#8582
test: refactor test to use latest standards#8582burakgazi wants to merge 1 commit intonodejs:masterfrom
Conversation
|
LGTM. Can you please include the description of changes into the commit message? |
eljefedelrodeodeljefe
left a comment
There was a problem hiding this comment.
LGTM with a nit. Can you please include the description of changes into the commit message?
|
@burakgazi there is a typo in the commit message (standarts -> standards), and also the commas do not have a space before them. |
Refactored the code to latest standards, where all var is changed to const, functions are changed to arrow functions and assert.equal chaned to assert.strictEqual
| }, function() { | ||
| socket2.bind({port: common.PORT + 1, exclusive: true}, function() { | ||
| }, () => { | ||
| socket2.bind({ port: common.PORT + 1, exclusive: true }, () => { |
There was a problem hiding this comment.
I thought the preferred style in core was to not have spaces inside of the curly braces. I could be wrong though.
cjihrig
left a comment
There was a problem hiding this comment.
LGTM, although I don't really see a reason for moving to arrow functions in this case.
|
@eljefedelrodeodeljefe Could you update your review? I believe the changes you've requested have been made. Thank you. |
|
I'll start landing this:
|
|
landed in 0bfd103 Thank you for your contribution, @burakgazi |
Refactored the code to latest standards, where all var is changed to const, functions are changed to arrow functions and assert.equal chaned to assert.strictEqual PR-URL: #8582 Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Refactored the code to latest standards, where all var is changed to const, functions are changed to arrow functions and assert.equal chaned to assert.strictEqual PR-URL: #8582 Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Checklist
make -j4 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
test
Description of change
refactor test to use latest standards
- change var to const
- function to =>
- equal to strictEqual