Open chilledtonic opened 1 year ago
Hey @chilledtonic - thanks for submitting this issue and sorry for my delayed reply, I was on holiday last week! Yeah it definitely looks like the URL should be populated - I'll double check this tomorrow! If confirmed as a bug, would you be interested in contributing a PR to fix this?
Hey @chilledtonic - thanks for submitting this issue and sorry for my delayed reply, I was on holiday last week!
No worries at all, it's no crisis - I'm actually also on Holiday right now!
Yeah it definitely looks like the URL should be populated - I'll double check this tomorrow! If confirmed as a bug, would you be interested in contributing a PR to fix this?
I'd be happy to contribute. I'll read up on the docs and get back to you. Thanks.
I'd be happy to contribute. I'll read up on the docs and get back to you. Thanks.
Awesome! Any questions, give me a shout :)
If confirmed as a bug,
And to confirm, this is a bug - good spot!
Describe the bug
When using mock-fetch to intercept a fetch, the response it returns with does not have a "url" field - it returns blank. Example below.
Example Test:
Example Response:
Expected behaviour According to the MSN Docs, the url field should include the final url after any and all redirects (Redirects which could be simulated using the mock library, say). Instead, it comes up completely empty.
I've noticed other mock fetch libraries (namely this one) also have this issue - is this an intended result and I'm just misunderstanding the URL field?
Thanks.