hippie
hippie copied to clipboard
What is the purpose of .end(fn)?
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.
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.