A / superagent-mocker

Pretty simple in-browser mocks for CRUD and REST API
132 stars 32 forks source link

Add mock status code #9

Open khmelevskii opened 9 years ago

khmelevskii commented 9 years ago

for example, mock status code = 404

A commented 9 years ago

Nice idea. I'll try to hack it.

A commented 9 years ago

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.

LeopoldoFu commented 8 years ago

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

A commented 8 years ago

@LeopoldoFu Super! Could you make pull request?

lobobabysaurus commented 8 years ago

@LeopoldoFu :+1: to a pull request to support this