howardabrams/node-mocks-http — pull request #23 by rknell (2014-10-15 06:04:02+00:00)
Title: Adding support for res.json(data, statusCode)

Hello,

My code is using the reverse syntax for the status code as in res.json(data, statusCode). This causes a number of problems including setting the status code to the data sent.

I have attached the code and added a test for the reverse. All tests are passing. The warning about a depreciated method is still in place.