A / superagent-mocker

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

can't get query string #27

Closed yalishizhude closed 8 years ago

yalishizhude commented 8 years ago
var obj = {id:1};
request.get('/a').query(obj).end();

In this situation,mock only has headers,body and cannot get the variable "obj",can support it?

pictin commented 8 years ago

Same for me. Looks like code does not support superagent's query() at the moment.

ra100 commented 8 years ago

I think this should be closed, issue has been already fixed.

kmudrick commented 8 years ago

As of version 0.5.0, superagent-mocker should capture query params: https://github.com/A/superagent-mocker/pull/35