superagent-mocker
superagent-mocker copied to clipboard
Pretty simple in-browser mocks for CRUD and REST API
There seems to be no 'delete' method supported. This should fix it
If I mock an endpoint that takes an array of objects or string as a body param, when I get the body in the mock handler it is not what...
The headers in the request object passed into the callback for `get` or `post` mocks are getting lower-cased. While generally speaking, http headers are case-insensitive, it may actually matter for...
I am using .withCredentials() to send cookies (http://visionmedia.github.io/superagent/#cors) is this supported with superagent-mocker. If yes, can you provide me with an example for it ?
This line confused me for quite a while: "You may set the body of a POST request as the second parameter of mock.post()". What this should say is: "you may...
Cannot mock requests sent this way. `superagent("POST", "/relative/url") .query() .send() .end()` mocking this is fine. `superagent.post("relative/url") .query() .send()` Is there a way to mock request on constructor at the moment...
I'm trying to mock a `POST` call that would return a `401 Unauthorized` error for some testing. Any way to do this?
If I use superagent and set query to `{ foo: undefined, bar: [], baz: false, quux: ['a', 'b'] }`, superagent-mock generates a req.query object of `{ foo: 'undefined', bar: '',...
The terms of the MIT license indicate that the license itself must be distributed with any significant portions of the code. Unfortunately, I don't see a `LICENSE`, `LICENSE.txt`, `LICENSE.md` nor...