Comparing version 0.10.4 to 0.10.5
@@ -20,3 +20,3 @@ var http = require('http'); | ||
ret = []; | ||
var ret = []; | ||
ret.push('\nnock(\''); | ||
@@ -23,0 +23,0 @@ if (options._https_) { ret.push('https://'); } |
@@ -189,3 +189,3 @@ var path = require('path') | ||
function isDone() { | ||
keys = Object.keys(interceptors); | ||
var keys = Object.keys(interceptors); | ||
if (keys.length === 0) { | ||
@@ -192,0 +192,0 @@ return true; |
{ "name" : "nock" | ||
, "description" : "HTTP Server mocking for Node.js" | ||
, "tags" : ["Mock", "HTTP", "testing", "isolation"] | ||
, "version" : "0.10.4" | ||
, "version" : "0.10.5" | ||
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>" | ||
@@ -18,2 +18,3 @@ , "contributors" : | ||
, {"name": "James Herdman"} | ||
, {"name": "David Björklund"} | ||
] | ||
@@ -20,0 +21,0 @@ , "repository" : |
@@ -377,2 +377,3 @@ var nock = require('../.') | ||
t.test("post", function(t) { | ||
var dataCalled; | ||
var req = http.request({ | ||
@@ -402,2 +403,3 @@ host: "www.spiffy.com" | ||
t.test("get", function(t) { | ||
var dataCalled; | ||
var req = http.request({ | ||
@@ -404,0 +406,0 @@ host: "www.spiffy.com" |
59565
1739