jcayzacJ
Denoβ€’2y agoβ€’
3 replies
jcayzac

How to build a Response object with the 'url' property set

Writing unit tests. Some functions parse Response objects. How do I create some where the
url
property isn't an empty string?

Crafting statusText and headers to mimick a server response from a certain host doesn't seem to work.
Was this page helpful?