test: refactor test and add common.mustCall#10017
Conversation
There was a problem hiding this comment.
This line can be moved below the common.hasCrypto check.
There was a problem hiding this comment.
I think these lines should be indented now.
There was a problem hiding this comment.
The common.mustCall() here seems unnecessary.
There was a problem hiding this comment.
Please remove the unnecessary added blank lines.
|
Ping @bchirgwin: Are you able to update this based on the comments from @cjihrig? |
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual()
|
@cjihrig I updated this per your comments and pushed to @bchirgwin's branch. Can you please take a look and, if appropriate, update your review? Thanks! |
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: nodejs#10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
Landed in 6281a1c. |
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: #10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: #10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: #10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: #10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: #10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: #10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
var -> let / const added common.mustCall() to callback assert.equal() -> assert.strictEqual() PR-URL: #10017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Checklist
make -j8 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
test
Description of change
var -> let / const
added common.mustCall to callbacks