mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
01058c412e
commit
4f47e2df44
1 file changed
+2
@@ -30,6 +30,8 @@ fs.exists(f, common.mustCall(function(y) {
|
||||
assert.strictEqual(y, true);
|
||||
}));
|
||||
|
||||
assert.doesNotThrow(() => fs.exists(f));
|
||||
|
||||
fs.exists(`${f}-NO`, common.mustCall(function(y) {
|
||||
assert.strictEqual(y, false);
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user