From a942df63df08ce62ac3e382fc941ee43450afcf2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 5 Aug 2014 12:51:28 -0700 Subject: [PATCH] paypro: drop sign() calls in verify tests. --- test/test.PayPro.js | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/test/test.PayPro.js b/test/test.PayPro.js index 80bac03e9..85f51a3a9 100644 --- a/test/test.PayPro.js +++ b/test/test.PayPro.js @@ -781,16 +781,11 @@ describe('PayPro (in Wallet) model', function() { should.exist(txp); should.exist(txp.signedBy[myId]); should.not.exist(txp.rejectedBy[myId]); - delete txp.signedBy[myId]; w.verifyPaymentRequest(ntxid).should.equal(false); - w.sign(ntxid, function(signed) { - should.exist(signed); - signed.should.equal(false); - console.log('TX not signed.'); - return done(); - }); + console.log('TX not verified.'); + return done(); }); }); @@ -822,16 +817,11 @@ describe('PayPro (in Wallet) model', function() { should.exist(txp); should.exist(txp.signedBy[myId]); should.not.exist(txp.rejectedBy[myId]); - delete txp.signedBy[myId]; w.verifyPaymentRequest(ntxid).should.equal(false); - w.sign(ntxid, function(signed) { - should.exist(signed); - signed.should.equal(false); - console.log('TX not signed.'); - return done(); - }); + console.log('TX not verified.'); + return done(); }); }); @@ -852,17 +842,9 @@ describe('PayPro (in Wallet) model', function() { should.exist(txp); should.exist(txp.signedBy[myId]); should.not.exist(txp.rejectedBy[myId]); - delete txp.signedBy[myId]; w.verifyPaymentRequest(ntxid).should.equal(true); - // w.sign(ntxid, function(signed) { - // should.exist(signed); - // // signed.should.equal(true); // false for some reason - // console.log('TX signed successfully.'); - // return done(); - // }); - console.log('PR verfied successfully.'); return done(); });