test: coverage for util.promisify#17591
test: coverage for util.promisify#17591mithunsasidharan wants to merge 1 commit intonodejs:masterfrom mithunsasidharan:pr_coverage_promisify
Conversation
test/parallel/test-util-promisify.js
Outdated
There was a problem hiding this comment.
Please use TypeError here instead of Error.
There was a problem hiding this comment.
I am going to open a PR to make that stricter.
There was a problem hiding this comment.
@Trott : I've updated that. Kindly review now. Thanks !
maclover7
left a comment
There was a problem hiding this comment.
LGTM, but can you please lowercase util.promisify in the commit message
|
@maclover7 : Thanks for the feedback. I've updated the commit message. Kindly review now! |
|
@mithunsasidharan since you open quite a few PRs - would you be so kind and tick off the checkboxes? It just makes it easier to have a good overview of what is going on 😃 |
|
@BridgeAR : I'm sorry I missed to update the checklist before. I've updated it now. Kindly review. Thanks ! |
apapirovski
left a comment
There was a problem hiding this comment.
Can this be updated to take all the various types to confirm it's not just a falsy check or something similar?
[undefined, null, true, 0, 'str', {}, [], Symbol()].forEach(/* test */)
|
@apapirovski : Thanks for your feedback. I've updated the PR. Kindly review now! |
|
Landed in f86427e Thanks @mithunsasidharan! |
Add a test that confirms that non-function arguments passed to util.promisify throw an ERR_INVALID_ARG_TYPE error. PR-URL: #17591 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Add a test that confirms that non-function arguments passed to util.promisify throw an ERR_INVALID_ARG_TYPE error. PR-URL: #17591 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Add a test that confirms that non-function arguments passed to util.promisify throw an ERR_INVALID_ARG_TYPE error. PR-URL: #17591 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Added missing coverage for scenario where it throws when a non function is passed as argument to
Util.PromisifyChecklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test