paypro: update tests to use wallet.isShared().

This commit is contained in:
Christopher Jeffrey 2014-08-08 13:37:25 -07:00 committed by Manuel Araoz
commit d4d33ed2e7

View file

@ -728,7 +728,7 @@ describe('PayPro (in Wallet) model', function() {
}, function(ntxid, merchantData) { }, function(ntxid, merchantData) {
should.exist(ntxid); should.exist(ntxid);
should.exist(merchantData); should.exist(merchantData);
if (w.totalCopayers > 1) { if (w.isShared()) {
return done(); return done();
} else { } else {
w.sendPaymentTx(ntxid, { memo: memo }, function(txid, merchantData) { w.sendPaymentTx(ntxid, { memo: memo }, function(txid, merchantData) {
@ -755,7 +755,7 @@ describe('PayPro (in Wallet) model', function() {
} }
w.createTx(uri, commentText, function(ntxid, merchantData) { w.createTx(uri, commentText, function(ntxid, merchantData) {
if (w.totalCopayers > 1) { if (w.isShared()) {
should.exist(ntxid); should.exist(ntxid);
should.exist(merchantData); should.exist(merchantData);
return done(); return done();
@ -776,7 +776,7 @@ describe('PayPro (in Wallet) model', function() {
var address = 'bitcoin:2NBzZdFBoQymDgfzH2Pmnthser1E71MmU47?amount=0.00003&r=' + server.uri + '/request'; var address = 'bitcoin:2NBzZdFBoQymDgfzH2Pmnthser1E71MmU47?amount=0.00003&r=' + server.uri + '/request';
var commentText = 'Hello, server. I\'d like to make a payment.'; var commentText = 'Hello, server. I\'d like to make a payment.';
w.createTx(address, commentText, function(ntxid, merchantData) { w.createTx(address, commentText, function(ntxid, merchantData) {
if (w.totalCopayers > 1) { if (w.isShared()) {
should.exist(ntxid); should.exist(ntxid);
should.exist(merchantData); should.exist(merchantData);
return done(); return done();