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

Hello,

My code is using the format res.json(data, statusCode) which works well with express. However this causes an issue when using node-mocks-http as I am unable to get status codes and the what is supposed to be the data is presented the wrong way.

This fix rectifies the issue whilst still maintaining the first scenario.