visionmedia/mocha — pull request #874 by grandvizier (2013-05-28 22:08:38+00:00)
Title: emit the failed event onto the suite so the tests (before/after) can listen for it

implemented this in order to hook into the failed event for a test so that the afterEach can execute failed functionality