Closed skibz closed 7 years ago
@skibz totally agree. In fact, I was thinking the same thing the other day! Feel free to submit a PR and I will merge it in 😄
Heads up; ill be out of town for the next two weeks so it would be mid-July before I could review
Looks like #2 updated the src script but not the lib output. In effect, 1.3.0 does not actually have this fix.
@marcind you're totally right! I just pushed v1.3.1
which bundles the change. Thanks for the heads up! 🍻
suppose i were testing this route handler
with this test case
the type error being thrown is because the stubbed
res.status
function is a sinon spy and does not returnres
. could it be possible to alter this library to support chaining function calls in a backwards compatible manner?i'd be happy to have a go at adding this, just wanted to get your thoughts on the matter 🙏