aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-controller-test.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-05-24 08:57:58 +0800
committerGitHub <noreply@github.com>2017-05-24 08:57:58 +0800
commite8288ad4bfaa5b65b23f0a03d0c036457a24893f (patch)
treeb1ed4d382b3008fe3271b0c10a8f6dab41b6ee9f /test/unit/tx-controller-test.js
parent9c316664de2eb82bdd10ab9cd6fa0a33f5185e20 (diff)
parent97ea7454b353acb8f87dac087eeae61f945325d7 (diff)
downloadtangerine-wallet-browser-e8288ad4bfaa5b65b23f0a03d0c036457a24893f.tar.gz
tangerine-wallet-browser-e8288ad4bfaa5b65b23f0a03d0c036457a24893f.tar.zst
tangerine-wallet-browser-e8288ad4bfaa5b65b23f0a03d0c036457a24893f.zip
Merge pull request #1455 from MetaMask/networkController
Create a network controller to manage switching networks an updating t…
Diffstat (limited to 'test/unit/tx-controller-test.js')
-rw-r--r--test/unit/tx-controller-test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index d4e8d79f0..711e1ea79 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -2,6 +2,7 @@ const assert = require('assert')
const EventEmitter = require('events')
const ethUtil = require('ethereumjs-util')
const EthTx = require('ethereumjs-tx')
+const EthQuery = require('eth-query')
const ObservableStore = require('obs-store')
const clone = require('clone')
const sinon = require('sinon')
@@ -16,9 +17,10 @@ describe('Transaction Controller', function () {
beforeEach(function () {
txController = new TransactionController({
- networkStore: new ObservableStore({ network: currentNetworkId }),
+ networkStore: new ObservableStore(currentNetworkId),
txHistoryLimit: 10,
blockTracker: new EventEmitter(),
+ ethQuery: new EthQuery(new EventEmitter()),
signTransaction: (ethTx) => new Promise((resolve) => {
ethTx.sign(privKey)
resolve()