This is to prevent the need for me to set the destroy function handler myself when creating a request for the http library. Since the destroy function returns void we can just mock it as an empty function and don't need to action anything.
I'm not actually using express but this library is working for me with the core http library. This change saves me 1 line of additional code and makes it easier for other people using the library that aren't using express.
This is to prevent the need for me to set the destroy function handler myself when creating a request for the http library. Since the destroy function returns void we can just mock it as an empty function and don't need to action anything.
I'm not actually using express but this library is working for me with the core http library. This change saves me 1 line of additional code and makes it easier for other people using the library that aren't using express.
Before:
After: