hippie icon indicating copy to clipboard operation
hippie copied to clipboard

What is the purpose of .end(fn)?

Open JohnieLee opened this issue 8 years ago • 1 comments

I assumed that you can do additional validation in .end(fn) with fn being the validation methods. But it seems like errors thrown from there are just swallowed.

JohnieLee avatar Nov 10 '16 21:11 JohnieLee

One thing I use it for is sanity checking when writing the tests - end((err, res, body) => console.log(body))

I think validation should happen in expect() methods.

crummy avatar Jul 03 '17 13:07 crummy