domenic/promise-tests — pull request #3 by briancavalier (2012-10-15 15:51:48+00:00)
Title: Example test to ensure that promise chains are isolated

Is this kind of test valuable? I could imagine expanding it to cover cases like one fulfillment handler returning successfully, while another throws--ensuring that the subsequent steps in the chain are fulfilled and rejected.

Also, I use the `.then(done, done)` pattern in when.js's test because it tends to allow the test framework (buster.js in my case, but seems to work here, too) to report the real error rather than a timeout. That may provide better feedback for failures, but I'm not as familiar with async testing in mocha.