settings: fix test 3

This commit is contained in:
Manuel Araoz 2014-09-05 14:28:21 -03:00
commit 296ddf3625
2 changed files with 4 additions and 3 deletions

View file

@ -29,7 +29,8 @@ var preconditions = require('preconditions').singleton();
*/
var Insight = function(opts) {
preconditions.checkArgument(opts).shouldBeObject(opts)
preconditions.checkArgument(opts)
.shouldBeObject(opts)
.checkArgument(opts.host)
.checkArgument(opts.port)
.checkArgument(opts.schema);
@ -149,7 +150,6 @@ Insight.prototype.subscribe = function(addresses) {
return function(txid) {
// verify the address is still subscribed
if (!self.subscribed[address]) return;
log.debug('insight tx event');
self.emit('tx', {