Y
Hacker News
new
|
ask
|
show
|
jobs
by
jlipps
4718 days ago
You could wrap the whole thing in a try-catch and catch the first error to occur.
In my experience, running this with Mocha, errors are handled automatically by it()