Closed chrisabrams closed 7 years ago
It would appear that addEventListener
is not supported: https://github.com/jameslnewell/xhr-mock/blob/26a385c580c109bfbcb2acabf830f44b6a83b5cd/lib/MockXMLHttpRequest.js#L215
Thanks for reporting!
I haven't used (a library that uses) addEventListener
yet and haven't found the time/need to implement it yet. Would you be able to submit a PR that improves the error messaging, or that implements the feature according to spec?
This was recently implemented in a PR.
This error is very vague; I have no idea what feature is not implemented. :O
For reference, here is what I tried doing: