visionmedia/mocha — Issue #171: Calling done(obj) for async test should fail the it even if "obj" is not instance of Error
Author: eldargab
Created: 2011-12-22 15:51:47+00:00
State: open

Hi. I suddenly found that async test fails only when done() function called with instance of Error. That's seames to be unexpected because we typically considering as error any truthy object. In my case done() wasn't called explicitly and there was a bug wich passed to done() wrong object, but nevertheless all tests where passing.