Skip to content

Conversation

@Tobbe
Copy link
Contributor

@Tobbe Tobbe commented Oct 21, 2017

The jsdoc comment mentioned the posibility to specify what method to
stub, but the actual code didn't support it. Now it does.

To match the documentation and other stub functions the method
parameter is the first parameter. To keep the code backwards
compatible this parameter needed to be optional. That unfortunately
made the actual implementation a litte bit messy.

Fixes #5

The jsdoc comment mentioned the posibility to specify what method to
stub, but the actual code didn't support it. Now it does.

To match the documentation and other stub functions the `method`
parameter is the first parameter. To keep the code backwards
compatible this parameter needed to be optional. That unfortunately
made the actual implementation a litte bit messy.

Fixes #5
@mzabriskie mzabriskie merged commit 734bb91 into axios:master Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stubRequest for specific method?

2 participants