From 296ddf3625060832da5f5a6ff925b23ce30d0f4b Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 5 Sep 2014 14:28:21 -0300 Subject: [PATCH] settings: fix test 3 --- js/models/blockchain/Insight.js | 4 ++-- test/test.WalletFactory.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/models/blockchain/Insight.js b/js/models/blockchain/Insight.js index 2e6c4116c..b4d928c4c 100644 --- a/js/models/blockchain/Insight.js +++ b/js/models/blockchain/Insight.js @@ -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', { diff --git a/test/test.WalletFactory.js b/test/test.WalletFactory.js index 4559a5361..ac473bb89 100644 --- a/test/test.WalletFactory.js +++ b/test/test.WalletFactory.js @@ -441,9 +441,10 @@ describe('WalletFactory model', function() { should.exist(w.privateKey.toObj()); }); - it('should be able to import simple 1-of-1 encrypted legacy testnet wallet', function(done) { + it.only('should be able to import simple 1-of-1 encrypted legacy testnet wallet', function(done) { var pp = new Passphrase(config.passphrase); var alternateConfig = JSON.parse(JSON.stringify(config)); + alternateConfig.Blockchain = FakeBlockchain; alternateConfig.Storage = LocalEncrypted; alternateConfig.storage = { localStorage: mockLocalStorage,