diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-06-16 05:00:28 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-06-16 05:00:28 +0800 |
commit | c4f61768205f325a7592d3158404d56ff13a02d6 (patch) | |
tree | 178748dc76e446a44cea7ef348dd1542c7d17fd1 /test | |
parent | f87c5f8a14fb892325735ed6377ed5b9464fe512 (diff) | |
parent | 39c7ed230d61b04d147e45a55ac7af0576961968 (diff) | |
download | tangerine-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')
-rw-r--r-- | test/unit/tx-controller-test.js | 5 |
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() }) }) }) |