* mkdir - restricted symbols('?' only)

* FINAL
This commit is contained in:
yevseytsev 2018-10-09 17:28:14 -04:00 committed by David Humphrey
parent 934ef8bfa7
commit 27659d45da
1 changed files with 10 additions and 1 deletions

View File

@ -45,4 +45,13 @@ describe('fs.mkdir', function() {
}); });
}); });
}); });
it('should return an error if the path already exists (using promises)', () => {
var fsPromises = util.fs().promises;
return fsPromises.mkdir('/').catch(error => {
expect(error).to.exist;
expect(error.code).to.equal('EEXIST');
});
});
}); });