Skip to content

Commit

Permalink
Corrected Travis CI error for issue 500
Browse files Browse the repository at this point in the history
  • Loading branch information
Mera-Gangapersaud committed Sep 28, 2018
1 parent fd3de6b commit 80d4406
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/spec/fs.open.spec.js
Expand Up @@ -47,6 +47,21 @@ describe('fs.open', function() {
});
});

it('should return an error when flag in invalid', function(done) {
var fs = util.fs();

fs.writeFile('/myfile1', 'data', function(error) {
if(error) throw error;

fs.open('/myfile1', 'mno', function(error, result) {
expect(error).to.exist;
expect(error.code).to.equal('EINVAL');
expect(result).not.to.exist;
done();
});
});
});

it('should return an error when flagged for append and the path is a directory', function(done) {
var fs = util.fs();

Expand Down

0 comments on commit 80d4406

Please sign in to comment.