From 41510e7da492e74a851c22c23e2fbda4d91ac944 Mon Sep 17 00:00:00 2001 From: Janice <43356495+Janice0218@users.noreply.github.com> Date: Tue, 9 Oct 2018 21:17:25 -0400 Subject: [PATCH] Fix issue 529 (#530) * Fix issue 529 * Fix Issue 529 * Fix issue 529 and some indentations * fix arrow function instead of function expression * Fix issue529 * Fix issue529 * Saving files before refreshing line endings * done * push again * change sth * changed --- tests/spec/fs.lstat.spec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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'); + }); + }); +}); + +