From 5ceadf0d1d0825aa39674710d65310619755c16b 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 b19aa38774..331c8c04e3 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); }));