Failing test
This commit is contained in:
parent
270d705f12
commit
76118694bf
|
@ -0,0 +1,17 @@
|
|||
var Filer = require('../..');
|
||||
var util = require('../lib/test-utils.js');
|
||||
var expect = require('chai').expect;
|
||||
|
||||
describe('fs.readFile on a dir path', function() {
|
||||
beforeEach(util.setup);
|
||||
afterEach(util.cleanup);
|
||||
|
||||
it('should fail with EISDIR', function(done) {
|
||||
var fs = util.fs();
|
||||
|
||||
fs.readFile('/', function(err) {
|
||||
expect(err.code).to.equal('EISDIR');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue