BedrockStreaming/superagent-mock

Response error when no matching URL found

seonixx opened this issue · 3 comments

When a URL is requested that does not have a matching definition/method, the response is returned with the error/status 'parserMethod is not a function.' if a callback is not defined. I don't believe this dependency is documented, nor is the fact you can set a callback.

Assuming the error needs to be properly handled, and the documentation updated.

Happy to submit a PR if needs be.

This is also mentioned in issue #15.

Yes, you're right, this isn't a proper behavior.
Don't hesitate to make a PR 😉

Solved in 3.4.0