aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/components/pending-tx-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/components/pending-tx-test.js')
-rw-r--r--test/unit/components/pending-tx-test.js31
1 files changed, 14 insertions, 17 deletions
diff --git a/test/unit/components/pending-tx-test.js b/test/unit/components/pending-tx-test.js
index 52e5e5910..22a98bc93 100644
--- a/test/unit/components/pending-tx-test.js
+++ b/test/unit/components/pending-tx-test.js
@@ -15,23 +15,22 @@ describe('PendingTx', function () {
const gasPrice = '0x4A817C800' // 20 Gwei
const txData = {
- 'id':5021615666270214,
- 'time':1494458763011,
- 'status':'unapproved',
- 'metamaskNetworkId':'1494442339676',
- 'txParams':{
- 'from':'0xfdea65c8e26263f6d9a1b5de9555d2931a33b826',
- 'to':'0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb',
- 'value':'0xde0b6b3a7640000',
+ 'id': 5021615666270214,
+ 'time': 1494458763011,
+ 'status': 'unapproved',
+ 'metamaskNetworkId': '1494442339676',
+ 'txParams': {
+ 'from': '0xfdea65c8e26263f6d9a1b5de9555d2931a33b826',
+ 'to': '0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb',
+ 'value': '0xde0b6b3a7640000',
gasPrice,
- 'gas':'0x7b0c'},
- 'gasLimitSpecified':false,
- 'estimatedGas':'0x5208',
+ 'gas': '0x7b0c'},
+ 'gasLimitSpecified': false,
+ 'estimatedGas': '0x5208',
}
it('should use updated values when edited.', function (done) {
-
const renderer = ReactTestUtils.createRenderer()
const newGasPrice = '0x77359400'
@@ -40,7 +39,6 @@ describe('PendingTx', function () {
accounts: identities,
txData,
sendTransaction: (txMeta, event) => {
-
// Assert changes:
const result = ethUtil.addHexPrefix(txMeta.txParams.gasPrice)
assert.notEqual(result, gasPrice, 'gas price should change')
@@ -60,17 +58,16 @@ describe('PendingTx', function () {
ReactTestUtils.Simulate.change(input, {
target: {
value: 2,
- checkValidity() { return true },
+ checkValidity () { return true },
},
})
const form = additions.find(component, 'form')[0]
form.checkValidity = () => true
- form.getFormEl = () => { return { checkValidity() { return true } } }
- ReactTestUtils.Simulate.submit(form, { preventDefault() {}, target: { checkValidity() {
+ form.getFormEl = () => { return { checkValidity () { return true } } }
+ ReactTestUtils.Simulate.submit(form, { preventDefault () {}, target: { checkValidity () {
return true
} } })
-
} catch (e) {
console.log('WHAAAA')
console.error(e)