javascript,node.js,request,fakeweb,nock
There is nothing wrong with your nock configuration however you haven't told request to parse the response as JSON. From the request method documentation (emphasis on me): json - sets body but to JSON representation of value and adds Content-type: application/json header. Additionally, parses the response body as JSON. The...