Error response doesn't work with Angular
ArielGueta opened this issue · 3 comments
ArielGueta commented
morsdyce commented
Could you make a small example to reproduce this? This is probably an issue with the requests engine (xhook) which I also maintain, however I need to make sure what exactly the issue is and how it conforms to the XHR spec.
I do know people who used mimic with angular and everything worked correctly so I'll check if they know anything about this.
ArielGueta commented
It only happens when mocking an error. Why xhr.response
returns an empty string?
morsdyce commented
It relates to quirks in the implementation that is trying to be standard
compliant while also covering weird browser behavior.
I'll try triaging this and open an issue on xhook itself
…On Sun, Aug 16, 2020, 18:48 Ariel Gueta ***@***.***> wrote:
It only happens when mocking an error. Why xhr.response returns an empty
string?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#300 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMWUIXZPLL4YMZLX2NHYWDSA75VDANCNFSM4P7EEMGA>
.