Closed ghost closed 7 years ago
I believe I'm missing something. What are you expecting this case? Thanks.
The current implementation of sendStatus()
returns the response object, so you can use it afterwards, like calling end()
. However a) the Express 4 documentation doesn't mention it and b) it doesn't make much sense apparently, because sendStatus()
is a final action. So I guess the current mock's fine.
But just undefined, hence code calling e.g.
rsp.sendStatus(...).end()
will not work/crash.