Fixes from review

This commit is contained in:
David Humphrey 2018-12-12 22:02:08 -05:00
parent 0352dad66c
commit 2841b2eba7
1 changed files with 5 additions and 4 deletions

View File

@ -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(); 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(); done();
})).to.throw('flags is not valid'); });
}); });
}); });