aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-01-18 11:44:11 +0800
committerkumavis <aaron@kumavis.me>2018-01-18 11:44:11 +0800
commit3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466 (patch)
tree87a759f48484c95f317cf617de6ae29920a2a0b3 /test/unit
parentb259c293745d94f257a0c309e331fea9f5ffaafe (diff)
downloadtangerine-wallet-browser-3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466.tar
tangerine-wallet-browser-3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466.tar.gz
tangerine-wallet-browser-3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466.tar.bz2
tangerine-wallet-browser-3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466.tar.lz
tangerine-wallet-browser-3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466.tar.xz
tangerine-wallet-browser-3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466.tar.zst
tangerine-wallet-browser-3cbf2b7e3e8608ec5f79ffd64cc15bc633ef2466.zip
test - remove createEthJsQueryStub
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/tx-controller-test.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 36f3e1c68..882a15334 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -1,11 +1,12 @@
const assert = require('assert')
const ethUtil = require('ethereumjs-util')
const EthTx = require('ethereumjs-tx')
+const EthjsQuery = require('ethjs-query')
const ObservableStore = require('obs-store')
const sinon = require('sinon')
const TransactionController = require('../../app/scripts/controllers/transactions')
const TxGasUtils = require('../../app/scripts/lib/tx-gas-utils')
-const { createStubedProvider, createEthJsQueryStub } = require('../stub/provider')
+const { createStubedProvider } = require('../stub/provider')
const noop = () => true
const currentNetworkId = 42
@@ -30,10 +31,7 @@ describe('Transaction Controller', function () {
resolve()
}),
})
- txController.query = createEthJsQueryStub(provider)
- txController.txGasUtil.query = createEthJsQueryStub(provider)
txController.nonceTracker.getNonceLock = () => Promise.resolve({ nextNonce: 0, releaseLock: noop })
- txController.txProviderUtils = new TxGasUtils(txController.provider)
})
describe('#getState', function () {