Skip to content

Commit

Permalink
test: increase fs.exists coverage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NigelKibodeaux authored and gibfahn committed Oct 31, 2017
1 parent 01058c4 commit 4f47e2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-fs-exists.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}));
Expand Down

0 comments on commit 4f47e2d

Please sign in to comment.