philc / shoulda.js

Concise JavaScript unit testing micro framework.
MIT License
92 stars 3 forks source link

Ensure teardown methods are always called. #12

Closed int3 closed 12 years ago

int3 commented 12 years ago

While setting up PhantomJS testing for Vimium, I got very confused about why some errors were occurring -- it turned out that exceptions thrown in an earlier test were causing subsequent ones to fail because the teardown method was not called.

philc commented 12 years ago

Thanks jez!