Created
May 18, 2015 20:33
-
-
Save pinalbhatt/62da7f4ecabc3ee0734e to your computer and use it in GitHub Desktop.
nock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment