Failing test

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-08-17 15:12:08 -04:00
parent 270d705f12
commit 76118694bf
1 changed files with 17 additions and 0 deletions

17
tests/bugs/issue254.js Normal file
View File

@ -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();
});
});
});