Comparing version 0.8.3 to 0.8.4
var Piper = require('./piper'), | ||
EventEmitter = require('events').EventEmitter; | ||
function stringifyRequest(options) { | ||
function stringifyRequest(options, body) { | ||
var method = options.method || 'GET', | ||
path = options.path, | ||
body = options.body; | ||
path = options.path; | ||
@@ -122,3 +121,3 @@ if (body && typeof(body) !== 'string') { | ||
if (interceptors.length < 1) { throw new Error("Nock: No match for HTTP request " + stringifyRequest(options)); } | ||
if (interceptors.length < 1) { throw new Error("Nock: No match for HTTP request " + stringifyRequest(options, requestBody)); } | ||
interceptor = interceptors.shift(); | ||
@@ -125,0 +124,0 @@ |
{ "name" : "nock" | ||
, "description" : "HTTP Server mocking for Node.js" | ||
, "tags" : ["Mock", "HTTP", "testing", "isolation"] | ||
, "version" : "0.8.3" | ||
, "version" : "0.8.4" | ||
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>" | ||
, "contributors" : | ||
[ {"name":"Roly Fentanes" } | ||
, {"name":"Alexander Simmerl"} | ||
, {"name":"Pedro Teixeira"} | ||
, {"name":"Nuno Job"} | ||
, {"name":"Ian Young"} | ||
, {"name":"nilsbunger"} | ||
[ {"name": "Roly Fentanes" } | ||
, {"name": "Alexander Simmerl"} | ||
, {"name": "Pedro Teixeira"} | ||
, {"name": "Nuno Job"} | ||
, {"name": "Ian Young"} | ||
, {"name": "nilsbunger"} | ||
, {"name": "bacchusrx", "email": "bacchusrx@eightstar.ca"} | ||
@@ -14,0 +14,0 @@ , {"name": "Fabiano França"} |
50604
1512