aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-03 09:03:34 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-03 09:03:34 +0800
commit4b398701c15e2cc57f73426b15b1a21b16933042 (patch)
treed69a46c45260692e3d2f9a69d618134c499424f1 /test
parentc734e486a027b52e9b8b8684e0b81d592698d7ac (diff)
downloadtangerine-wallet-browser-4b398701c15e2cc57f73426b15b1a21b16933042.tar
tangerine-wallet-browser-4b398701c15e2cc57f73426b15b1a21b16933042.tar.gz
tangerine-wallet-browser-4b398701c15e2cc57f73426b15b1a21b16933042.tar.bz2
tangerine-wallet-browser-4b398701c15e2cc57f73426b15b1a21b16933042.tar.lz
tangerine-wallet-browser-4b398701c15e2cc57f73426b15b1a21b16933042.tar.xz
tangerine-wallet-browser-4b398701c15e2cc57f73426b15b1a21b16933042.tar.zst
tangerine-wallet-browser-4b398701c15e2cc57f73426b15b1a21b16933042.zip
fix unit tests
Diffstat (limited to 'test')
-rw-r--r--test/unit/app/controllers/transactions/tx-state-manager-test.js7
1 files changed, 3 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 f4b287634..2f91b1545 100644
--- a/test/unit/app/controllers/transactions/tx-state-manager-test.js
+++ b/test/unit/app/controllers/transactions/tx-state-manager-test.js
@@ -57,12 +57,11 @@ describe('TransactionStateManager', function () {
const tx = { id: 1, status: 'unapproved', metamaskNetworkId: currentNetworkId, txParams: {} }
txStateManager.addTx(tx)
const noop = function (err, txId) {
- if (!err) {
+ if (err) {
+ console.log('Error: ', err)
+ }
assert(true, 'event listener has been triggered and noop executed')
done()
- } else {
- done(new Error(err.toString()))
- }
}
txStateManager.on('1:rejected', noop)
txStateManager.setTxStatusRejected(1)