Fixes from review
This commit is contained in:
parent
0352dad66c
commit
2841b2eba7
|
@ -170,13 +170,14 @@ describe('fs.open', function() {
|
|||
});
|
||||
});
|
||||
|
||||
it('should return an error when flag in invalid', function(done) {
|
||||
it('should error when flag is invalid', function(done) {
|
||||
var fs = util.fs();
|
||||
|
||||
expect(fs.open('/myfile', 'abcd', function(){
|
||||
fs.open('/myfile', 'abcd', function(err) {
|
||||
expect(err).to.exist;
|
||||
expect(err.code).to.equal('EINVAL');
|
||||
done();
|
||||
})).to.throw('flags is not valid');
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue