aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-06-16 04:44:58 +0800
committerDan Finlay <dan@danfinlay.com>2017-06-16 04:44:58 +0800
commit39c7ed230d61b04d147e45a55ac7af0576961968 (patch)
tree7004351239ad6c73c1a6d177cbf90dfb7893643f /test/unit
parenta80945e73075b8c0dc43a68ba73da65d7074e098 (diff)
parent1a4f982739a09a4fd757b5f45fcaeef1a93dd4a3 (diff)
downloadtangerine-wallet-browser-39c7ed230d61b04d147e45a55ac7af0576961968.tar
tangerine-wallet-browser-39c7ed230d61b04d147e45a55ac7af0576961968.tar.gz
tangerine-wallet-browser-39c7ed230d61b04d147e45a55ac7af0576961968.tar.bz2
tangerine-wallet-browser-39c7ed230d61b04d147e45a55ac7af0576961968.tar.lz
tangerine-wallet-browser-39c7ed230d61b04d147e45a55ac7af0576961968.tar.xz
tangerine-wallet-browser-39c7ed230d61b04d147e45a55ac7af0576961968.tar.zst
tangerine-wallet-browser-39c7ed230d61b04d147e45a55ac7af0576961968.zip
Merge remote-tracking branch 'origin/master' into AddTokenList
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/tx-controller-test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 3954300a8..f0d8a706e 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -311,12 +311,13 @@ describe('Transaction Controller', function () {
})
describe('#sign replay-protected tx', function () {
- it('prepares a tx with the chainId set', 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()
})
})
})