aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-controller-test.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-09-30 08:36:49 +0800
committerGitHub <noreply@github.com>2017-09-30 08:36:49 +0800
commit7bdf73b1ddb7249907be5500b35f0b91490e1893 (patch)
treeb4490434d704d78d0ecfcdbabe5dd0db9df36b4e /test/unit/tx-controller-test.js
parent8425fb04d388b5a1f46c79f5ec5f28c69d91d684 (diff)
parentac80eaca1fc9923cd5696282ba2bc6bace22ff83 (diff)
downloadtangerine-wallet-browser-7bdf73b1ddb7249907be5500b35f0b91490e1893.tar
tangerine-wallet-browser-7bdf73b1ddb7249907be5500b35f0b91490e1893.tar.gz
tangerine-wallet-browser-7bdf73b1ddb7249907be5500b35f0b91490e1893.tar.bz2
tangerine-wallet-browser-7bdf73b1ddb7249907be5500b35f0b91490e1893.tar.lz
tangerine-wallet-browser-7bdf73b1ddb7249907be5500b35f0b91490e1893.tar.xz
tangerine-wallet-browser-7bdf73b1ddb7249907be5500b35f0b91490e1893.tar.zst
tangerine-wallet-browser-7bdf73b1ddb7249907be5500b35f0b91490e1893.zip
Merge pull request #2233 from MetaMask/remove-accountTracker-from-transactions
pending-tx - dont check the balance to rebrodcast
Diffstat (limited to 'test/unit/tx-controller-test.js')
-rw-r--r--test/unit/tx-controller-test.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 66772ff88..bb51ab01f 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -25,7 +25,6 @@ describe('Transaction Controller', function () {
networkStore: new ObservableStore(currentNetworkId),
txHistoryLimit: 10,
blockTracker: { getCurrentBlock: noop, on: noop, once: noop },
- accountTracker: { store: { getState: noop } },
signTransaction: (ethTx) => new Promise((resolve) => {
ethTx.sign(privKey)
resolve()
@@ -383,30 +382,6 @@ describe('Transaction Controller', function () {
})
})
- describe('#getBalance', function () {
- it('gets balance', function () {
- sinon.stub(txController.accountTracker.store, 'getState').callsFake(() => {
- return {
- accounts: {
- '0x1678a085c290ebd122dc42cba69373b5953b831d': {
- address: '0x1678a085c290ebd122dc42cba69373b5953b831d',
- balance: '0x00000000000000056bc75e2d63100000',
- code: '0x',
- nonce: '0x0',
- },
- '0xc684832530fcbddae4b4230a47e991ddcec2831d': {
- address: '0xc684832530fcbddae4b4230a47e991ddcec2831d',
- balance: '0x0',
- code: '0x',
- nonce: '0x0',
- },
- },
- }
- })
- assert.equal(txController.pendingTxTracker.getBalance('0x1678a085c290ebd122dc42cba69373b5953b831d'), '0x00000000000000056bc75e2d63100000')
- assert.equal(txController.pendingTxTracker.getBalance('0xc684832530fcbddae4b4230a47e991ddcec2831d'), '0x0')
- })
- })
describe('#getPendingTransactions', function () {
beforeEach(function () {