Tests: Refactored to es6#9700
Tests: Refactored to es6#9700itsmed wants to merge 6 commits intonodejs:masterfrom itsmed:strengthen-tests
Conversation
cjihrig
left a comment
There was a problem hiding this comment.
Can you update the commit message according to https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#step-3-commit.
There was a problem hiding this comment.
Can you change { 'fd': fd } to just { fd }.
There was a problem hiding this comment.
Can you replace the throws with common.fail().
|
Ok, thanks. Changes made. |
There was a problem hiding this comment.
The callback here should be wrapped in a common.mustCall()
There was a problem hiding this comment.
The callback should be wrapped in a common.mustCall()
|
Ok I think I've got it this time! |
Changed var to const, assert.equal to assert.strictEqual
Replaced anonymous functions with arrow functions. Replaced throw new Error with common.fail.
Replaced anonymous functions with arrow functions. Replaced throw new Error with common.fail.
Changed var to const, assert.equal to assert.strictEqual
Replaced anonymous functions with arrow functions. Replaced throw new Error with common.fail.
|
@italoacasas rebase done. |
|
The previous CI job is gone. New CI: https://ci.nodejs.org/job/node-test-pull-request/6230/ |
Replace anonymous functions with arrow functions. Replace throw new Error with common.fail. PR-URL: #9700 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Replace anonymous functions with arrow functions. Replace throw new Error with common.fail. PR-URL: #9700 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Replace anonymous functions with arrow functions. Replace throw new Error with common.fail. PR-URL: #9700 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Replace anonymous functions with arrow functions. Replace throw new Error with common.fail. PR-URL: #9700 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Replace anonymous functions with arrow functions. Replace throw new Error with common.fail. PR-URL: nodejs/node#9700 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
Checklist
make -j8 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
Tests
Description of change
Changed var to const, assert.equal to assert.strictEqual. Changed anonymous functions to use arrow functions.