aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/app/controllers/transactions/tx-state-manager-test.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-03 08:12:50 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-03 08:12:50 +0800
commit0da41263acabe99fb1bf6b1a3a00c0c27a305eea (patch)
tree722f22697118dfef12d83f55cce13a567040791d /test/unit/app/controllers/transactions/tx-state-manager-test.js
parent390f86113a3ca8c1e2725af4705b3863f3da9a3f (diff)
downloadtangerine-wallet-browser-0da41263acabe99fb1bf6b1a3a00c0c27a305eea.tar.gz
tangerine-wallet-browser-0da41263acabe99fb1bf6b1a3a00c0c27a305eea.tar.zst
tangerine-wallet-browser-0da41263acabe99fb1bf6b1a3a00c0c27a305eea.zip
fix warning for unit tests
Diffstat (limited to 'test/unit/app/controllers/transactions/tx-state-manager-test.js')
-rw-r--r--test/unit/app/controllers/transactions/tx-state-manager-test.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unit/app/controllers/transactions/tx-state-manager-test.js b/test/unit/app/controllers/transactions/tx-state-manager-test.js
index 2597e2490..2509c11fb 100644
--- a/test/unit/app/controllers/transactions/tx-state-manager-test.js
+++ b/test/unit/app/controllers/transactions/tx-state-manager-test.js
@@ -1,6 +1,4 @@
const assert = require('assert')
-const clone = require('clone')
-const ObservableStore = require('obs-store')
const TxStateManager = require('../../../../../app/scripts/controllers/transactions/tx-state-manager')
const txStateHistoryHelper = require('../../../../../app/scripts/controllers/transactions/lib/tx-state-history-helper')
const noop = () => true
@@ -59,6 +57,7 @@ describe('TransactionStateManager', function () {
const tx = { id: 1, status: 'unapproved', metamaskNetworkId: currentNetworkId, txParams: {} }
txStateManager.addTx(tx)
const noop = function (err, txId) {
+ assert(err, null)
assert(true, 'event listener has been triggered and noop executed')
done()
}
@@ -166,8 +165,6 @@ describe('TransactionStateManager', function () {
},
}
- const updatedMeta = clone(txMeta)
-
txStateManager.addTx(txMeta)
const updatedTx = txStateManager.getTx('1')
// verify tx was initialized correctly