visionmedia/mocha — Issue #198: return done('some custom err') is successful if only one test
Author: MatthewMueller
Created: 2012-01-08 05:25:17+00:00
State: open

The following will be successful:

$ mocha test/test.mocha.js

```
var fs = require("fs");

describe('cool', function() {
describe('blah', function() {

it('should not pass', function(done) {

fs.readFile('nowheretobefound.txt', 'utf8', function(err, content) {
if (err) {
return done('some custom error');
} else {
return done();
}
});

});

});
});
```

Definitely not a huge priority, just thought I'd point it out.

Thanks!