aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-controller-test.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-06-13 08:42:54 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2017-06-13 08:42:54 +0800
commitdbc48c3992b9592ae6984c0dc402f06ad60d7814 (patch)
tree5cfeb73d1a8e7240d8ff558b03db9b4b7ae718ed /test/unit/tx-controller-test.js
parentbbe0c73dca45542b519036bec2bae5feb1e55485 (diff)
downloadtangerine-wallet-browser-dbc48c3992b9592ae6984c0dc402f06ad60d7814.tar
tangerine-wallet-browser-dbc48c3992b9592ae6984c0dc402f06ad60d7814.tar.gz
tangerine-wallet-browser-dbc48c3992b9592ae6984c0dc402f06ad60d7814.tar.bz2
tangerine-wallet-browser-dbc48c3992b9592ae6984c0dc402f06ad60d7814.tar.lz
tangerine-wallet-browser-dbc48c3992b9592ae6984c0dc402f06ad60d7814.tar.xz
tangerine-wallet-browser-dbc48c3992b9592ae6984c0dc402f06ad60d7814.tar.zst
tangerine-wallet-browser-dbc48c3992b9592ae6984c0dc402f06ad60d7814.zip
Make test Async
Diffstat (limited to 'test/unit/tx-controller-test.js')
-rw-r--r--test/unit/tx-controller-test.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 3954300a8..f05ae479b 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')
const ethTx = new EthTx(ethUtil.toBuffer(rawTx))
assert.equal(ethTx.getChainId(), currentNetworkId)
+ done()
})
})
})