tzeskimo/mocha-fibers — pull request #5 by adborden (2014-07-23 20:23:41+00:00)
Title: Errors passed to done callback are ignored

If your test function calls `done` with an error, we should pass that error to mocha's `done` callback as well in order to fail the test. Otherwise we'll be hiding errors.

```
it('always fails', function (done) {
done(new Error("This test should fail"));
});
```
I wasn't sure how to write a test for this because we need to pass an error in the test, but not fail the test... We could re-write the module structure so tests have access to `fiberize` but don't expose it to anything external to the module. Then you could make better unit tests around `fiberize` but that's out of scope for this pull request.