diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-05-23 14:12:28 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-05-24 07:49:57 +0800 |
commit | 243eeff7cb0d4c5d613a9250d234f81fdccbbf15 (patch) | |
tree | 406aa8da0a12fa542cf85c2838cbf94cc324ddaf /test/unit/tx-controller-test.js | |
parent | 529304c005318852b60bb93846a58d6eb3da2066 (diff) | |
download | tangerine-wallet-browser-243eeff7cb0d4c5d613a9250d234f81fdccbbf15.tar tangerine-wallet-browser-243eeff7cb0d4c5d613a9250d234f81fdccbbf15.tar.gz tangerine-wallet-browser-243eeff7cb0d4c5d613a9250d234f81fdccbbf15.tar.bz2 tangerine-wallet-browser-243eeff7cb0d4c5d613a9250d234f81fdccbbf15.tar.lz tangerine-wallet-browser-243eeff7cb0d4c5d613a9250d234f81fdccbbf15.tar.xz tangerine-wallet-browser-243eeff7cb0d4c5d613a9250d234f81fdccbbf15.tar.zst tangerine-wallet-browser-243eeff7cb0d4c5d613a9250d234f81fdccbbf15.zip |
Fix for tests
Diffstat (limited to 'test/unit/tx-controller-test.js')
-rw-r--r-- | test/unit/tx-controller-test.js | 4 |
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() |