aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-14 20:57:36 +0800
committerDan <danjm.com@gmail.com>2018-05-14 20:57:36 +0800
commit0739618a61cfc383498e466f4fdeb5a25324598f (patch)
treeb386cdfc09134ed5b865af2f785f3474551c2ccb /ui/app/components/send_
parent0076b732bd7c7d22b947f8d437c91944dac78219 (diff)
downloadtangerine-wallet-browser-0739618a61cfc383498e466f4fdeb5a25324598f.tar.gz
tangerine-wallet-browser-0739618a61cfc383498e466f4fdeb5a25324598f.tar.zst
tangerine-wallet-browser-0739618a61cfc383498e466f4fdeb5a25324598f.zip
Tests for send.duck.js
Diffstat (limited to 'ui/app/components/send_')
-rw-r--r--ui/app/components/send_/tests/send-selectors-test-data.js20
-rw-r--r--ui/app/components/send_/tests/send-selectors.test.js6
2 files changed, 13 insertions, 13 deletions
diff --git a/ui/app/components/send_/tests/send-selectors-test-data.js b/ui/app/components/send_/tests/send-selectors-test-data.js
index 1a95b5f41..ecfe9022f 100644
--- a/ui/app/components/send_/tests/send-selectors-test-data.js
+++ b/ui/app/components/send_/tests/send-selectors-test-data.js
@@ -90,31 +90,31 @@ module.exports = {
{
'id': 'mockTokenTx1',
'txParams': {
- 'to': '0x8d6b81208414189a58339873ab429b6c47ab92d3'
+ 'to': '0x8d6b81208414189a58339873ab429b6c47ab92d3',
},
- 'time': 1700000000000
+ 'time': 1700000000000,
},
{
'id': 'mockTokenTx2',
'txParams': {
- 'to': '0xafaketokenaddress'
+ 'to': '0xafaketokenaddress',
},
- 'time': 1600000000000
+ 'time': 1600000000000,
},
{
'id': 'mockTokenTx3',
'txParams': {
- 'to': '0x8d6b81208414189a58339873ab429b6c47ab92d3'
+ 'to': '0x8d6b81208414189a58339873ab429b6c47ab92d3',
},
- 'time': 1500000000000
+ 'time': 1500000000000,
},
{
'id': 'mockEthTx1',
'txParams': {
- 'to': '0xd85a4b6a394794842887b8284293d69163007bbb'
+ 'to': '0xd85a4b6a394794842887b8284293d69163007bbb',
},
- 'time': 1400000000000
- }
+ 'time': 1400000000000,
+ },
],
'selectedTokenAddress': '0x8d6b81208414189a58339873ab429b6c47ab92d3',
'unapprovedMsgs': {
@@ -195,7 +195,7 @@ module.exports = {
'txValue': 'de0b6b3a7640000',
'maxCost': 'de234b52e4a0800',
'gasPrice': '4a817c800',
- }
+ },
},
'currentLocale': 'en',
},
diff --git a/ui/app/components/send_/tests/send-selectors.test.js b/ui/app/components/send_/tests/send-selectors.test.js
index e2acc15f6..9dc207ead 100644
--- a/ui/app/components/send_/tests/send-selectors.test.js
+++ b/ui/app/components/send_/tests/send-selectors.test.js
@@ -42,12 +42,12 @@ const {
import mockState from './send-selectors-test-data'
describe('send selectors', () => {
- let tempGlobalEth = Object.assign({}, global.eth)
+ const tempGlobalEth = Object.assign({}, global.eth)
beforeEach(() => {
global.eth = {
contract: sinon.stub().returns({
- at: address => 'mockAt:' + address
- })
+ at: address => 'mockAt:' + address,
+ }),
}
})