test(wallet): tests now pass

This commit is contained in:
Damian Mee 2014-10-21 07:01:22 +02:00
parent 8eab816b29
commit e8e1516437
2 changed files with 28 additions and 28 deletions

View file

@ -9,7 +9,7 @@ var txs = {};
module.exports = {
FINGERPRINT_NEW: FINGERPRINT_NEW,
FINGERPRINT_FUNDS: FINGERPRINT_FUNDS,
summonTransaction: function(fingerprint, tx, cb) {
getPendingAmount: function(tx, cb) {
var cachedTx = txs[tx.txId];
if (cachedTx) cb(null, cachedTx);
else {
@ -17,6 +17,10 @@ module.exports = {
cb(null, null);
}
},
changeTxStatus: function(txId, newStatus, data, cb) {
cb = typeof cb === 'function' ? cb : function() {};
cb();
},
reportTransactionError: function(tx, err, status) {
txs[tx.txId].err = err;
txs[tx.txId].status = status;