diff --git a/tests/spec/fs.lstat.spec.js b/tests/spec/fs.lstat.spec.js index 0fa650f..b9d4bd3 100644 --- a/tests/spec/fs.lstat.spec.js +++ b/tests/spec/fs.lstat.spec.js @@ -47,3 +47,20 @@ describe('fs.lstat', function() { }); }); }); + +describe('fs.promises.lstat', ()=> { + beforeEach(util.setup); + afterEach(util.cleanup); + + it('should return an error if path does not exist', () => { + var fsPromises = util.fs().promises; + + return fsPromises.lstat('/tmp') + .catch( error => { + expect(error).to.exist; + expect(error.code).to.equal('ENOENT'); + }); + }); +}); + +