From 68697dc3a77100a1a66a0813b6c33d3905546db4 Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Thu, 29 Jan 2015 16:44:32 -0300 Subject: [PATCH] Remove several console.log --- test/HDParams.js | 6 ------ test/Identity.js | 2 +- test/PrivateKey.js | 1 - test/TxProposals.js | 2 -- test/Wallet.js | 3 +-- test/network.Async.js | 1 - 6 files changed, 2 insertions(+), 13 deletions(-) diff --git a/test/HDParams.js b/test/HDParams.js index 94055a647..9766761eb 100644 --- a/test/HDParams.js +++ b/test/HDParams.js @@ -62,12 +62,6 @@ describe('HDParams model', function() { it('should throw an error', function() { var data = new HDParams(); - - if (data instanceof HDParams) { - console.log('ok'); - } else { - console.log('error'); - } (function() { HDParams.fromObj(data); }).should.throw('BADDATA'); diff --git a/test/Identity.js b/test/Identity.js index f963c5ff7..308bc2edb 100644 --- a/test/Identity.js +++ b/test/Identity.js @@ -1263,7 +1263,7 @@ describe('Identity model', function() { expect(iden._checkVersion()).to.be.undefined; expect(iden._checkVersion('0.0.0')).to.be.undefined; (function() { - console.log('b', iden._checkVersion('9.9.9')); + iden._checkVersion('9.9.9'); }).should.throw('Major difference'); }); }); diff --git a/test/PrivateKey.js b/test/PrivateKey.js index 7e8b660c1..3d4050bcb 100644 --- a/test/PrivateKey.js +++ b/test/PrivateKey.js @@ -27,7 +27,6 @@ describe('PrivateKey model', function() { var w = new PrivateKey(pkConfig); var pubk1 = w.getExtendedPublicKeyString(); should.exist(pubk1); - console.log(pubk1); }); it('should return the private key', function() { diff --git a/test/TxProposals.js b/test/TxProposals.js index adca7c344..fd7abb9f2 100644 --- a/test/TxProposals.js +++ b/test/TxProposals.js @@ -213,8 +213,6 @@ describe('TxProposals', function() { describe('#getUsedUnspent', function() { it('should return an empty object', function() { var txps = new TxProposals(); - - console.log(txps); txps.txps = { a: { isPending: sinon.stub().returns(false) diff --git a/test/Wallet.js b/test/Wallet.js index deb6c9ccf..cafc86826 100644 --- a/test/Wallet.js +++ b/test/Wallet.js @@ -212,7 +212,6 @@ describe('Wallet model', function() { status.should.equal(Wallet.TX_PROPOSAL_SENT); w.network.send.calledOnce.should.equal(true); - console.log(w.network.send.getCall(0).args[1]); w.network.send.getCall(0).args[1].type.should.equal("txProposal"); should.exist(w.network.send.getCall(0).args[1].indexes); should.exist(w.network.send.getCall(0).args[1].txProposal); @@ -1910,7 +1909,7 @@ describe('Wallet model', function() { inputChainPaths: ['/m/1'], }; var map = w._getPubkeyToCopayerMap(txp); - console.log('[Wallet.js.1526:map:]', map); //TODO + //console.log('[Wallet.js.1526:map:]', map); //TODO Object.keys(map).length.should.equal(1); map['123'].should.equal('juan'); stub.restore(); diff --git a/test/network.Async.js b/test/network.Async.js index d0a879401..12dba5622 100644 --- a/test/network.Async.js +++ b/test/network.Async.js @@ -433,7 +433,6 @@ describe('Network / Async', function() { var lockIds = ['abc001', 'abc002']; n.lockIncommingConnections(lockIds); - console.log(n.allowedCopayerIds); Object.keys(n.allowedCopayerIds).length.should.be.equal(2); }); });