eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
747 stars 131 forks source link

fix: return empty string when send was called with undefined #298

Closed davidgf closed 2 months ago

davidgf commented 3 months ago

Currently, if the send method is explicitly called with undefined, it returns the string undefined, instead of the expected empty string.

eugef commented 2 months ago

Hi @davidgf thanks for your contribution