test - unit - pending-tx-tracker - update method name

This commit is contained in:
kumavis 2018-05-28 16:00:35 -07:00
parent 686d5cf825
commit 31f47a7a42
1 changed files with 2 additions and 2 deletions

View File

@ -134,14 +134,14 @@ describe('PendingTransactionTracker', function () {
})
})
it('should warp all txMeta\'s in #_checkPendingTx', function (done) {
it('should warp all txMeta\'s in #updatePendingTxs', function (done) {
pendingTxTracker.getPendingTransactions = () => txList
pendingTxTracker._checkPendingTx = (tx) => { tx.resolve(tx) }
Promise.all(txList.map((tx) => tx.processed))
.then((txCompletedList) => done())
.catch(done)
pendingTxTracker._checkPendingTxs()
pendingTxTracker.updatePendingTxs()
})
})