Update fs.stat.spec.js to not have uncaught exception on promise

This commit is contained in:
David Humphrey 2018-11-27 20:53:35 -05:00
parent 725bfbf30c
commit 2135ee17e9
1 changed files with 4 additions and 1 deletions

View File

@ -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() {