nodeunit-httpclient icon indicating copy to clipboard operation
nodeunit-httpclient copied to clipboard

README lists improper variable for where json data is stored.

Open loudin opened this issue 13 years ago • 0 comments

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?

loudin avatar May 06 '12 22:05 loudin