From 2135ee17e9caced370d60fdcb0616a06b3908e54 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Tue, 27 Nov 2018 20:53:35 -0500 Subject: [PATCH] Update fs.stat.spec.js to not have uncaught exception on promise --- tests/spec/fs.stat.spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/spec/fs.stat.spec.js b/tests/spec/fs.stat.spec.js index 3f67003..c1d5563 100644 --- a/tests/spec/fs.stat.spec.js +++ b/tests/spec/fs.stat.spec.js @@ -99,7 +99,10 @@ describe('fs.stat', function() { it('should return a promise', function() { var fs = util.fs(); - expect(fs.promises.stat()).to.be.a('Promise'); + + var p = fs.promises.stat('/'); + expect(p).to.be.a('Promise'); + return p; }); it('(promise) should return a stat object if file exists', function() {