aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-03-31 07:06:27 +0800
committerkumavis <aaron@kumavis.me>2017-03-31 07:06:27 +0800
commit12918e18942a72223d7d97334934c31442e51caf (patch)
treed45200d40bd149cb417bad0859feb3604476f398 /test
parent1dce352523a1f79f052ef79c707d9bc44787b706 (diff)
downloadtangerine-wallet-browser-12918e18942a72223d7d97334934c31442e51caf.tar
tangerine-wallet-browser-12918e18942a72223d7d97334934c31442e51caf.tar.gz
tangerine-wallet-browser-12918e18942a72223d7d97334934c31442e51caf.tar.bz2
tangerine-wallet-browser-12918e18942a72223d7d97334934c31442e51caf.tar.lz
tangerine-wallet-browser-12918e18942a72223d7d97334934c31442e51caf.tar.xz
tangerine-wallet-browser-12918e18942a72223d7d97334934c31442e51caf.tar.zst
tangerine-wallet-browser-12918e18942a72223d7d97334934c31442e51caf.zip
tests - tx-manager - fix assert and clean formatting
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-manager-test.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/unit/tx-manager-test.js b/test/unit/tx-manager-test.js
index 20f89a226..21e94357b 100644
--- a/test/unit/tx-manager-test.js
+++ b/test/unit/tx-manager-test.js
@@ -1,5 +1,4 @@
-// const assert = require('assert')
-const assert = require('chai').assert
+const assert = require('assert')
const extend = require('xtend')
const EventEmitter = require('events')
const ethUtil = require('ethereumjs-util')
@@ -22,7 +21,6 @@ describe('Transaction Manager', function() {
blockTracker: new EventEmitter(),
signTransaction: (ethTx) => new Promise((resolve) => {
ethTx.sign(privKey)
- const result = ethTx.serialize()
resolve()
})
})
@@ -229,21 +227,15 @@ describe('Transaction Manager', function() {
})
})
-
describe('#sign replay-protected tx', function() {
it('prepares a tx with the chainId set', function() {
txManager.addTx({ id: '1', status: 'unapproved', metamaskNetworkId: currentNetworkId, txParams: {} }, noop)
txManager.signTransaction('1', (err, rawTx) => {
if (err) return assert.fail('it should not fail')
const ethTx = new EthTx(ethUtil.toBuffer(rawTx))
- console.log('------------------------------------------')
- console.log('ethTx.getChainId(), currentNetworkId')
- console.log(ethTx.getChainId(), currentNetworkId)
assert.equal(ethTx.getChainId(), currentNetworkId)
})
})
})
-
-
})