From 4f47e2df44e110542efb20e64c544e09030de4bb Mon Sep 17 00:00:00 2001 From: Nigel Kibodeaux Date: Wed, 25 Oct 2017 13:35:53 -0800 Subject: [PATCH] test: increase fs.exists coverage PR-URL: https://github.com/nodejs/node/pull/15963 Reviewed-By: Anatoli Papirovski Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Michael Dawson --- test/parallel/test-fs-exists.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-fs-exists.js b/test/parallel/test-fs-exists.js index b19aa387741a70..331c8c04e38e78 100644 --- a/test/parallel/test-fs-exists.js +++ b/test/parallel/test-fs-exists.js @@ -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); }));