diff --git a/test/test.PayPro.js b/test/test.PayPro.js index ac6757560..f8149e990 100644 --- a/test/test.PayPro.js +++ b/test/test.PayPro.js @@ -675,17 +675,11 @@ describe('PayPro (in Wallet) model', function() { should.exist(ntxid); should.exist(merchantData); if (w.totalCopayers > 1) { - console.log('Sent TX proposal to other copayers:'); - console.log([ntxid, merchantData]); return done(); } else { - console.log('Sending TX to merchant server:'); - console.log(ntxid); w.sendPaymentTx(ntxid, { memo: memo }, function(txid, merchantData) { should.exist(txid); should.exist(merchantData); - console.log('TX sent:'); - console.log([ntxid, merchantData]); return done(); }); } @@ -710,18 +704,12 @@ describe('PayPro (in Wallet) model', function() { if (w.totalCopayers > 1) { should.exist(ntxid); should.exist(merchantData); - console.log('Sent TX proposal to other copayers:'); - console.log([ntxid, merchantData]); return done(); } else { - console.log('Sending TX to merchant server:'); - console.log(ntxid); should.exist(merchantData); w.sendTx(ntxid, function(txid, merchantData) { should.exist(txid); should.exist(merchantData); - console.log('TX sent:'); - console.log([ntxid, merchantData]); return done(); }); } @@ -737,17 +725,11 @@ describe('PayPro (in Wallet) model', function() { if (w.totalCopayers > 1) { should.exist(ntxid); should.exist(merchantData); - console.log('Sent TX proposal to other copayers:'); - console.log([ntxid, merchantData]); return done(); } else { - console.log('Sending TX to merchant server:'); - console.log(ntxid); w.sendTx(ntxid, function(txid, merchantData) { should.exist(txid); should.exist(merchantData); - console.log('TX sent:'); - console.log([ntxid, merchantData]); return done(); }); } @@ -763,9 +745,6 @@ describe('PayPro (in Wallet) model', function() { should.exist(ntxid); should.exist(merchantData); - console.log('Sending TX to merchant server:'); - console.log(ntxid); - // Tamper with payment request in its raw form: var data = new Buffer(merchantData.raw, 'hex'); data = PayPro.PaymentRequest.decode(data); @@ -789,7 +768,6 @@ describe('PayPro (in Wallet) model', function() { w.verifyPaymentRequest(ntxid).should.equal(false); - console.log('TX not verified.'); return done(); }); }); @@ -803,9 +781,6 @@ describe('PayPro (in Wallet) model', function() { should.exist(ntxid); should.exist(merchantData); - console.log('Sending TX to merchant server:'); - console.log(ntxid); - // Tamper with payment request in its abstract form: var outputs = merchantData.pr.pd.outputs; var output = outputs[outputs.length - 1]; @@ -820,7 +795,6 @@ describe('PayPro (in Wallet) model', function() { w.verifyPaymentRequest(ntxid).should.equal(false); - console.log('TX not verified.'); return done(); }); }); @@ -834,9 +808,6 @@ describe('PayPro (in Wallet) model', function() { should.exist(ntxid); should.exist(merchantData); - console.log('Sending TX to merchant server:'); - console.log(ntxid); - // Tamper with payment request in its abstract form: var txp = w.txProposals.txps[ntxid]; var tx = txp.builder.tx || txp.builder.build(); @@ -850,7 +821,6 @@ describe('PayPro (in Wallet) model', function() { w.verifyPaymentRequest(ntxid).should.equal(false); - console.log('TX not verified.'); return done(); }); }); @@ -864,9 +834,6 @@ describe('PayPro (in Wallet) model', function() { should.exist(ntxid); should.exist(merchantData); - console.log('Sending TX to merchant server:'); - console.log(ntxid); - var myId = w.getMyCopayerId(); var txp = w.txProposals.txps[ntxid]; should.exist(txp); @@ -875,7 +842,6 @@ describe('PayPro (in Wallet) model', function() { w.verifyPaymentRequest(ntxid).should.equal(true); - console.log('PR verfied successfully.'); return done(); }); });