test: increase fs.exists coverage

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Nigel Kibodeaux 2017-10-25 13:35:53 -08:00 committed by Tobias Nießen
parent 6ff2909ef6
commit 4ed152ea8a
No known key found for this signature in database
GPG Key ID: 718207F8FD156B70

View File

@ -30,6 +30,8 @@ fs.exists(f, common.mustCall(function(y) {
assert.strictEqual(y, true); assert.strictEqual(y, true);
})); }));
assert.doesNotThrow(() => fs.exists(f));
fs.exists(`${f}-NO`, common.mustCall(function(y) { fs.exists(`${f}-NO`, common.mustCall(function(y) {
assert.strictEqual(y, false); assert.strictEqual(y, false);
})); }));