You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To you, or anyone else: we'd welcome a PR with a fix and an isolated test!
A note on the testing strategy: we're moving away from preventing regression of integration problems using wide-bracket integration tests (#1427). So we should instead add a test which isolates the specific client behavior, and be added to the client-facing tests in https://github.com/nock/nock/blob/beta/tests/test_request_overrider.js.
The integration test can (and even should) be used to confirm the fix at the time of the change, but won't be kept in the main nock codebase.
We're also open to contributions on #1427 toward building up and maintaining separate client integration tests which test against the latest development versions of Nock.
What is the expected behavior?
The property 'method' should be available on a request from
superagent
, similar to here:https://runkit.com/mrijke/superagent-with-method-on-request
What is the actual behavior?
The 'method' property is undefined
Possible solution
Copy the value from the 'method' property, if available (i.e. the request came from
superagent
)How to reproduce the issue
https://runkit.com/mrijke/nock-superagent-undefined-method
Does the bug have a test case?
No, but the superagent specific testcase can be extended, e.g.
Versions
The text was updated successfully, but these errors were encountered: