aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-07 01:40:11 +0800
committerDan <danjm.com@gmail.com>2017-12-07 01:40:11 +0800
commitaf8fcb67778fadd7056c0930eeb9d22eb28b0e69 (patch)
treedcb1d54325971a034ca18b1fa7c69b3615c33ee6 /test
parentf58aae3f2ba3d8a129b2c09dc3b45369c488fd04 (diff)
downloadtangerine-wallet-browser-af8fcb67778fadd7056c0930eeb9d22eb28b0e69.tar
tangerine-wallet-browser-af8fcb67778fadd7056c0930eeb9d22eb28b0e69.tar.gz
tangerine-wallet-browser-af8fcb67778fadd7056c0930eeb9d22eb28b0e69.tar.bz2
tangerine-wallet-browser-af8fcb67778fadd7056c0930eeb9d22eb28b0e69.tar.lz
tangerine-wallet-browser-af8fcb67778fadd7056c0930eeb9d22eb28b0e69.tar.xz
tangerine-wallet-browser-af8fcb67778fadd7056c0930eeb9d22eb28b0e69.tar.zst
tangerine-wallet-browser-af8fcb67778fadd7056c0930eeb9d22eb28b0e69.zip
Update resubmitPendingTxs tests.
Diffstat (limited to 'test')
-rw-r--r--test/unit/pending-tx-test.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/pending-tx-test.js b/test/unit/pending-tx-test.js
index 4b5170dfe..7069554f7 100644
--- a/test/unit/pending-tx-test.js
+++ b/test/unit/pending-tx-test.js
@@ -206,6 +206,7 @@ describe('PendingTransactionTracker', function () {
})
describe('#resubmitPendingTxs', function () {
+ const blockStub = { number: '0x0' };
beforeEach(function () {
const txMeta2 = txMeta3 = txMeta
txList = [txMeta, txMeta2, txMeta3].map((tx) => {
@@ -223,7 +224,7 @@ describe('PendingTransactionTracker', function () {
Promise.all(txList.map((tx) => tx.processed))
.then((txCompletedList) => done())
.catch(done)
- pendingTxTracker.resubmitPendingTxs()
+ pendingTxTracker.resubmitPendingTxs(blockStub)
})
it('should not emit \'tx:failed\' if the txMeta throws a known txError', function (done) {
knownErrors =[
@@ -250,7 +251,7 @@ describe('PendingTransactionTracker', function () {
.then((txCompletedList) => done())
.catch(done)
- pendingTxTracker.resubmitPendingTxs()
+ pendingTxTracker.resubmitPendingTxs(blockStub)
})
it('should emit \'tx:warning\' if it encountered a real error', function (done) {
pendingTxTracker.once('tx:warning', (txMeta, err) => {
@@ -268,7 +269,7 @@ describe('PendingTransactionTracker', function () {
.then((txCompletedList) => done())
.catch(done)
- pendingTxTracker.resubmitPendingTxs()
+ pendingTxTracker.resubmitPendingTxs(blockStub)
})
})
describe('#_resubmitTx', function () {