aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-06-13 08:52:37 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2017-06-13 08:52:37 +0800
commitc0f07844af434666ae1e511e90e36ca493e8bb91 (patch)
tree2171748d9256cb180035bf431c80c82313a93cd8 /test
parentae7c296669ad5c81e85071de071e2b0f2b1d4463 (diff)
downloadtangerine-wallet-browser-c0f07844af434666ae1e511e90e36ca493e8bb91.tar
tangerine-wallet-browser-c0f07844af434666ae1e511e90e36ca493e8bb91.tar.gz
tangerine-wallet-browser-c0f07844af434666ae1e511e90e36ca493e8bb91.tar.bz2
tangerine-wallet-browser-c0f07844af434666ae1e511e90e36ca493e8bb91.tar.lz
tangerine-wallet-browser-c0f07844af434666ae1e511e90e36ca493e8bb91.tar.xz
tangerine-wallet-browser-c0f07844af434666ae1e511e90e36ca493e8bb91.tar.zst
tangerine-wallet-browser-c0f07844af434666ae1e511e90e36ca493e8bb91.zip
Finish async when failing async test
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-controller-test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index f05ae479b..f0d8a706e 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -314,7 +314,7 @@ describe('Transaction Controller', function () {
it('prepares a tx with the chainId set', function (done) {
txController.addTx({ id: '1', status: 'unapproved', metamaskNetworkId: currentNetworkId, txParams: {} }, noop)
txController.signTransaction('1', (err, rawTx) => {
- if (err) return assert.fail('it should not fail')
+ if (err) return done('it should not fail')
const ethTx = new EthTx(ethUtil.toBuffer(rawTx))
assert.equal(ethTx.getChainId(), currentNetworkId)
done()