Skip to content
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

Add mock status code #9

Open
khmelevskii opened this issue Aug 7, 2015 · 5 comments
Open

Add mock status code #9

khmelevskii opened this issue Aug 7, 2015 · 5 comments
Labels

Comments

@khmelevskii
Copy link

for example, mock status code = 404

@A
Copy link
Owner

A commented Aug 9, 2015

Nice idea. I'll try to hack it.

@A
Copy link
Owner

A commented Aug 10, 2015

I think, I can reuse some things from superagent.Response constructor to provide same API. But it's looks like the new major version 'cause it will break current API. But I think, that this is the right way. Give me some additional time please.

@A A added the v1.0 label Aug 10, 2015
@LeopoldoFu
Copy link
Contributor

I think I've got something workable (works for my tests): https://github.com/ebsco/superagent-mocker/tree/mockable-status-codes

@A
Copy link
Owner

A commented Feb 11, 2016

@LeopoldoFu Super! Could you make pull request?

@lobobabysaurus
Copy link

@LeopoldoFu 👍 to a pull request to support this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants