Closed leosuncin closed 4 years ago
Stale issue message
Keep open. Tests must resemble the behavior of production environment, so the mock should be as close as possible and copycat the Node.js libraries
El mié., 26 de feb. de 2020 18:08, github-actions[bot] < notifications@github.com> escribió:
Stale issue message
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/howardabrams/node-mocks-http/issues/201?email_source=notifications&email_token=ABA3V4OGY7UBO5WDKVRXHX3RE376VA5CNFSM4KAIJ7OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCMC3I#issuecomment-591708525, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABA3V4O5WULNA34HO7A2HY3RE376VANCNFSM4KAIJ7OA .
The current implementation do not return the Response instance as ServerResponse.writeHead do.
See the official documentation as reference, it says that the function returns 1
ServerResponse
instance.Environment
Source code with the issue https://codesandbox.io/s/node-mocks-http-issue-febs0
Notes 1: Since node.js version 11.10.0