feat(requestoverrider): Add method property to mocked requests#1561
feat(requestoverrider): Add method property to mocked requests#1561paulmelnikow merged 3 commits intonock:betafrom
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
paulmelnikow
left a comment
There was a problem hiding this comment.
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_overridertestsuite.