I hate myself when I want to end a test and the only solution coming to my mind is: ``` foo(err) { if (err) { test.ok(false, 'error in foo, test finished'); test.done(); } } ``` Would be useful some kind of `test.fail(error)` method? do I miss something?
Activity
StuartHa commentedon Mar 4, 2015
+1 I am using this pattern too and it's not great.
mreinstein commentedon Mar 4, 2015
pull request welcome!
shakeelmohamed commentedon May 6, 2015
This would basically be a hybrid of
test.ok()andtest.done(), right?