aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2017-09-28 05:22:41 +0800
committerGitHub <noreply@github.com>2017-09-28 05:22:41 +0800
commit87458dae2432559a501a867ecc0ab02ae5c64f05 (patch)
treea2a958190584f888ceac5876c9658b438bb9142c /test/unit
parent5bbea78306f13415f85159f3d23c2b69d8f2a26c (diff)
parent7d499df8e32e85f5e4ed5c51f20496028d1dcdbb (diff)
downloadtangerine-wallet-browser-3.10.5.tar
tangerine-wallet-browser-3.10.5.tar.gz
tangerine-wallet-browser-3.10.5.tar.bz2
tangerine-wallet-browser-3.10.5.tar.lz
tangerine-wallet-browser-3.10.5.tar.xz
tangerine-wallet-browser-3.10.5.tar.zst
tangerine-wallet-browser-3.10.5.zip
Merge pull request #2191 from MetaMask/direct-block-trackerv3.10.5
Fix for direct use of eth-block-tracker
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/pending-tx-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/pending-tx-test.js b/test/unit/pending-tx-test.js
index 2865a30e6..1af464656 100644
--- a/test/unit/pending-tx-test.js
+++ b/test/unit/pending-tx-test.js
@@ -84,14 +84,14 @@ describe('PendingTransactionTracker', function () {
let newBlock, oldBlock
newBlock = { number: '0x01' }
pendingTxTracker._checkPendingTxs = done
- pendingTxTracker.queryPendingTxs({oldBlock, newBlock})
+ pendingTxTracker.queryPendingTxs({ oldBlock, newBlock })
})
it('should call #_checkPendingTxs if oldBlock and the newBlock have a diff of greater then 1', function (done) {
let newBlock, oldBlock
oldBlock = { number: '0x01' }
newBlock = { number: '0x03' }
pendingTxTracker._checkPendingTxs = done
- pendingTxTracker.queryPendingTxs({oldBlock, newBlock})
+ pendingTxTracker.queryPendingTxs({ oldBlock, newBlock })
})
it('should not call #_checkPendingTxs if oldBlock and the newBlock have a diff of 1 or less', function (done) {
let newBlock, oldBlock
@@ -101,7 +101,7 @@ describe('PendingTransactionTracker', function () {
const err = new Error('should not call #_checkPendingTxs if oldBlock and the newBlock have a diff of 1 or less')
done(err)
}
- pendingTxTracker.queryPendingTxs({oldBlock, newBlock})
+ pendingTxTracker.queryPendingTxs({ oldBlock, newBlock })
done()
})
})