test: increase fs.exists coverage#15963
Conversation
test/parallel/test-fs-exists.js
Outdated
There was a problem hiding this comment.
This should probably assert something.
There was a problem hiding this comment.
For instance,
assert.doesNotThrow(() => fs.exists(f));There was a problem hiding this comment.
Thanks, I just fixed it.
test/parallel/test-fs-exists.js
Outdated
There was a problem hiding this comment.
This isn't quite right yet. In this case, fs.exists(f) will be evaluated, and the return value will be passed to assert.doesNotThrow(). If you wrap fs.exists(f) in a function first, then it will be good to go. It would look like:
assert.doesNotThrow(() => { fs.exists(f); });
|
Ping @NigelKibodeaux |
|
CI failed with merge conflict. My guess it because of the different commeints. @NigelKibodeaux could you squash the commits down to 1 ? |
|
Hi @NigelKibodeaux, would you still like to follow up on this so that it can land in Node? Let me know if I can offer any pointers. Thanks for helping improve Node! |
70c18e1 to
e714c42
Compare
|
Hi @apapirovski, I'm attempting to squash my commits. I hope this works... |
|
@NigelKibodeaux seems to have worked 😄 I'll get a CI started and post a link shortly. Edit: oops, can you remove the merge commit. Let me know if you need pointers. |
3c5d976 to
7bcf844
Compare
|
I rebased and pushed for you 😃 CI: https://ci.nodejs.org/job/node-test-commit/13558/ (For further reference, NigelKibodeaux@6d9abdd is the original commit.) |
PR-URL: #15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
|
Landed in 4ed152e, thank you! 🎉 |
|
Thanks!
…On Sat, Oct 28, 2017 at 1:51 PM Tobias Nießen ***@***.***> wrote:
Closed #15963 <#15963>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15963 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAY8dJlpNJxzY2xXq_PdfDPF2zK1ZC3Oks5sw6HfgaJpZM4Pw0Z1>
.
|
PR-URL: #15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: #15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: #15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: nodejs/node#15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: nodejs/node#15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: #15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: #15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: #15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: nodejs/node#15963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Tests the case of calling
fs.existswithout a callback.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test