New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(requestoverrider): Add method property to mocked requests #1561
feat(requestoverrider): Add method property to mocked requests #1561
Conversation
Hi! Thanks for the PR. I may not have understood #1558. Is adding As I mentioned at #1558:
So this will also need a regression test which isolates the specific client behavior, that can be kept in place of the one added here based on superagent. |
@gr2m OK no problem, I'll rebase and split the commits. @paulmelnikow: I'm not extremely familiar with node's |
14e0095
to
e574609
Compare
Not sure I understand why those type defs are written the way they are, though fortunately, it doesn't seem like the
Added: And not so with Nock:
|
@paulmelnikow you're right... I was trying it out in runkit while nock was still mocking things, so I didn't see it... |
Add a testcase to ensure mocked requests have the 'method' property defined.
Mocked requests were missing the 'method' property on them.
e962d41
to
f41ffec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me! Left a couple minor tweaks. Thanks so much!
Improve testcase by suggestion of @paulmelnikow Co-Authored-By: Paul Melnikow <github@paulmelnikow.com>
🙌🏻 |
🎉 This PR is included in version 11.0.0-beta.16 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 11.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Mocked requests were missing the 'method' property on them.
Added a testcase to the
test_request_overrider
testsuite.