caolan/nodeunit — Issue #151: ifError doesn't throw
Author: mvolkmann
Created: 2012-02-05 03:09:24+00:00
State: open

I think the problem is that ifError assertion which is simply "if (error) throw error;" is getting wrapped by assertWrapper which contains a try/catch. This stops the throw from escaping and exiting the test method where it appears. Is it possible that the fix is simply to avoid wrapping the ifError assertion?