aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-10-07 03:50:33 +0800
committerDan Finlay <dan@danfinlay.com>2017-10-07 03:50:33 +0800
commit94513cae7bf3c8310ae6a248e12a9b7dd73e306f (patch)
treedaf460fe9b459b83de38bb8cf5c84e1f89e4b239 /test
parenta32d71e8ed4c91c8ad73f4a7afc52e506ccf5247 (diff)
downloadtangerine-wallet-browser-94513cae7bf3c8310ae6a248e12a9b7dd73e306f.tar.gz
tangerine-wallet-browser-94513cae7bf3c8310ae6a248e12a9b7dd73e306f.tar.zst
tangerine-wallet-browser-94513cae7bf3c8310ae6a248e12a9b7dd73e306f.zip
Provide method for tx tracker to refer to all txs
Diffstat (limited to 'test')
-rw-r--r--test/unit/pending-tx-test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/pending-tx-test.js b/test/unit/pending-tx-test.js
index 554bd5591..32421a44f 100644
--- a/test/unit/pending-tx-test.js
+++ b/test/unit/pending-tx-test.js
@@ -48,6 +48,7 @@ describe('PendingTransactionTracker', function () {
}
},
getPendingTransactions: () => {return []},
+ getCompletedTransactions: () => {return []},
publishTransaction: () => {},
})
})
@@ -82,7 +83,7 @@ describe('PendingTransactionTracker', function () {
nonce: '0x01',
}, { count: 1 })[0]
- stub = sinon.stub(pendingTxTracker, 'getPendingTransactions')
+ stub = sinon.stub(pendingTxTracker, 'getCompletedTransactions')
.returns(txGen.txs)
// THE EXPECTATION
@@ -97,7 +98,7 @@ describe('PendingTransactionTracker', function () {
await pendingTxTracker._checkPendingTx(pending)
// THE ASSERTION
- return sinon.assert.calledWith(spy, pending.id, 'tx failed should be emitted')
+ assert.ok(spy.calledWith(pending.id), 'tx failed should be emitted')
})
})