visionmedia/mocha — pull request #1036 by truongsinh (2013-11-12 12:00:50+00:00)
Title: Adding promise support to runnables (and thus tests).

* If a runnable returns a duck-typed promise, i.e. an object with a `then` method, it gets treated as an async test, with success if the promise is fulfilled and failure if it is rejected (with the rejection reason as the error).
* Includes tests both of new functionality and some to show that introducing this doesn't break any old functionality.