pinalbhatt
5/18/2015 - 8:33 PM

nock

nock

nock("http://www.google.com")
    .filteringPath(function(path){
      return '/';
    })
    .get("/")
    .reply(200, "this should work?");

request("http://www.google.com?value=bob", function(err, res, body) {
  return console.log(body);
});