nodeunit-httpclient
nodeunit-httpclient copied to clipboard
README lists improper variable for where json data is stored.
In your README, you imply that you store json data automatically in res.json:
//Test a response exports.test2 = function(test) { api.get(test, '/user', function(res) { //JSON responses are automatically parsed: test.equal(res.json, [{ name: 'Eric' }, { 'name': 'Kyle' }]);
test.done();
});
};
However, you store json data in res.data. Can you update the documentation to reflect this?