mirror of https://github.com/BTCPrivate/copay.git
paypro: drop sign() calls in verify tests.
This commit is contained in:
parent
21196f8b22
commit
a942df63df
|
@ -781,16 +781,11 @@ describe('PayPro (in Wallet) model', function() {
|
||||||
should.exist(txp);
|
should.exist(txp);
|
||||||
should.exist(txp.signedBy[myId]);
|
should.exist(txp.signedBy[myId]);
|
||||||
should.not.exist(txp.rejectedBy[myId]);
|
should.not.exist(txp.rejectedBy[myId]);
|
||||||
delete txp.signedBy[myId];
|
|
||||||
|
|
||||||
w.verifyPaymentRequest(ntxid).should.equal(false);
|
w.verifyPaymentRequest(ntxid).should.equal(false);
|
||||||
|
|
||||||
w.sign(ntxid, function(signed) {
|
console.log('TX not verified.');
|
||||||
should.exist(signed);
|
return done();
|
||||||
signed.should.equal(false);
|
|
||||||
console.log('TX not signed.');
|
|
||||||
return done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -822,16 +817,11 @@ describe('PayPro (in Wallet) model', function() {
|
||||||
should.exist(txp);
|
should.exist(txp);
|
||||||
should.exist(txp.signedBy[myId]);
|
should.exist(txp.signedBy[myId]);
|
||||||
should.not.exist(txp.rejectedBy[myId]);
|
should.not.exist(txp.rejectedBy[myId]);
|
||||||
delete txp.signedBy[myId];
|
|
||||||
|
|
||||||
w.verifyPaymentRequest(ntxid).should.equal(false);
|
w.verifyPaymentRequest(ntxid).should.equal(false);
|
||||||
|
|
||||||
w.sign(ntxid, function(signed) {
|
console.log('TX not verified.');
|
||||||
should.exist(signed);
|
return done();
|
||||||
signed.should.equal(false);
|
|
||||||
console.log('TX not signed.');
|
|
||||||
return done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -852,17 +842,9 @@ describe('PayPro (in Wallet) model', function() {
|
||||||
should.exist(txp);
|
should.exist(txp);
|
||||||
should.exist(txp.signedBy[myId]);
|
should.exist(txp.signedBy[myId]);
|
||||||
should.not.exist(txp.rejectedBy[myId]);
|
should.not.exist(txp.rejectedBy[myId]);
|
||||||
delete txp.signedBy[myId];
|
|
||||||
|
|
||||||
w.verifyPaymentRequest(ntxid).should.equal(true);
|
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.');
|
console.log('PR verfied successfully.');
|
||||||
return done();
|
return done();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue