Comparing version 0.7.1 to 0.7.2
@@ -211,3 +211,3 @@ // Core routines for event emitters | ||
if(resp.body || body) | ||
if((resp !== undefined && resp.body) || body) | ||
return self.die(new Error('Cannot handle a body in the feed response: ' + lib.JS(resp.body || body))) | ||
@@ -214,0 +214,0 @@ |
{ "name": "follow" | ||
, "version": "0.7.1" | ||
, "version": "0.7.2" | ||
, "author": { "name": "Jason Smith" | ||
@@ -4,0 +4,0 @@ , "email": "jhs@iriscouch.com" } |
@@ -14,16 +14,12 @@ var tap = require('tap') | ||
test('Issue #9', function(t) { | ||
test('Issue #10', function(t) { | ||
follow({db:couch.DB, inactivity_ms:30000}, function(er, change) { | ||
console.error('Change: ' + JSON.stringify(change)) | ||
if(change.seq == 1) | ||
return // Let it run through once, just for fun. | ||
if(change.seq == 2) | ||
this.stop() | ||
//t.equal(change.seq, 2, 'The second change will be the last') | ||
this.stop() | ||
setTimeout(finish, 250) | ||
function finish() { | ||
this.on('stop', function() { | ||
t.end() | ||
} | ||
}) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
213437
2696