aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-10-12 09:33:02 +0800
committerkumavis <aaron@kumavis.me>2017-10-12 09:33:36 +0800
commitdcf10f3d7559b428cc189fb4406580d816eae365 (patch)
treedb513e8612923fc1133dc2eb541726531a9320a8 /test
parentf0713d4b1a28d608ddca6e251e947d1b2e14b6d3 (diff)
downloadtangerine-wallet-browser-dcf10f3d7559b428cc189fb4406580d816eae365.tar
tangerine-wallet-browser-dcf10f3d7559b428cc189fb4406580d816eae365.tar.gz
tangerine-wallet-browser-dcf10f3d7559b428cc189fb4406580d816eae365.tar.bz2
tangerine-wallet-browser-dcf10f3d7559b428cc189fb4406580d816eae365.tar.lz
tangerine-wallet-browser-dcf10f3d7559b428cc189fb4406580d816eae365.tar.xz
tangerine-wallet-browser-dcf10f3d7559b428cc189fb4406580d816eae365.tar.zst
tangerine-wallet-browser-dcf10f3d7559b428cc189fb4406580d816eae365.zip
nonce-tracker - use blockTracker directly
Diffstat (limited to 'test')
-rw-r--r--test/unit/nonce-tracker-test.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/nonce-tracker-test.js b/test/unit/nonce-tracker-test.js
index 8970cf84d..77af2a21c 100644
--- a/test/unit/nonce-tracker-test.js
+++ b/test/unit/nonce-tracker-test.js
@@ -190,12 +190,13 @@ function generateNonceTrackerWith (pending, confirmed, providerStub = '0x0') {
providerResultStub.result = providerStub
const provider = {
sendAsync: (_, cb) => { cb(undefined, providerResultStub) },
- _blockTracker: {
- getCurrentBlock: () => '0x11b568',
- },
+ }
+ const blockTracker = {
+ getCurrentBlock: () => '0x11b568',
}
return new NonceTracker({
provider,
+ blockTracker,
getPendingTransactions,
getConfirmedTransactions,
})