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:
parent
b1c4f04f83
commit
41510e7da4
|
@ -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');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue