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
This commit is contained in:
Janice 2018-10-09 21:17:25 -04:00 committed by David Humphrey
parent b1c4f04f83
commit 41510e7da4
1 changed files with 17 additions and 0 deletions

View File

@ -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');
});
});
});