Closed GiordanoArman closed 2 years ago
AFAIK this PR still doesn't solve your initial problem #6 (comment)
basically I needed the callback argument to be triggered by the mock response end() method :)
Looks like this wasn't published in the end? 1.11 does not contain these changes.
Hi @eugef, thanks for the help. I added support for the various signatures of end() mentioned on the documentation https://nodejs.org/api/http.html#http_response_end_data_encoding_callback
response.end([data[, encoding]][, callback])
I hope my work is neat enough!