aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-controller-test.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-06-16 05:00:28 +0800
committerDan Finlay <dan@danfinlay.com>2017-06-16 05:00:28 +0800
commitc4f61768205f325a7592d3158404d56ff13a02d6 (patch)
tree178748dc76e446a44cea7ef348dd1542c7d17fd1 /test/unit/tx-controller-test.js
parentf87c5f8a14fb892325735ed6377ed5b9464fe512 (diff)
parent39c7ed230d61b04d147e45a55ac7af0576961968 (diff)
downloadtangerine-wallet-browser-c4f61768205f325a7592d3158404d56ff13a02d6.tar
tangerine-wallet-browser-c4f61768205f325a7592d3158404d56ff13a02d6.tar.gz
tangerine-wallet-browser-c4f61768205f325a7592d3158404d56ff13a02d6.tar.bz2
tangerine-wallet-browser-c4f61768205f325a7592d3158404d56ff13a02d6.tar.lz
tangerine-wallet-browser-c4f61768205f325a7592d3158404d56ff13a02d6.tar.xz
tangerine-wallet-browser-c4f61768205f325a7592d3158404d56ff13a02d6.tar.zst
tangerine-wallet-browser-c4f61768205f325a7592d3158404d56ff13a02d6.zip
Merge branch 'AddTokenList' into AddingTokens
Diffstat (limited to 'test/unit/tx-controller-test.js')
-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()
})
})
})