diff options
author | Dan <danjm.com@gmail.com> | 2018-05-14 20:13:55 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-14 20:13:55 +0800 |
commit | b3f08681fd943947526a294759896d093cdbd135 (patch) | |
tree | 8bb866ba7ec7aaea30533edd6841463e5f43d370 /ui/app/components/send_/tests/send-selectors-test-data.js | |
parent | c2ed2d4e5003abd01552570452a5b0b38626abca (diff) | |
download | tangerine-wallet-browser-b3f08681fd943947526a294759896d093cdbd135.tar.gz tangerine-wallet-browser-b3f08681fd943947526a294759896d093cdbd135.tar.zst tangerine-wallet-browser-b3f08681fd943947526a294759896d093cdbd135.zip |
Add missing unit tests in send_/: now 100% function test coverage in send_/
Diffstat (limited to 'ui/app/components/send_/tests/send-selectors-test-data.js')
-rw-r--r-- | ui/app/components/send_/tests/send-selectors-test-data.js | 45 |
1 files changed, 41 insertions, 4 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 bdea759fb..1a95b5f41 100644 --- a/ui/app/components/send_/tests/send-selectors-test-data.js +++ b/ui/app/components/send_/tests/send-selectors-test-data.js @@ -86,9 +86,42 @@ module.exports = { }, }, 'transactions': {}, - 'selectedAddressTxList': [], + 'selectedAddressTxList': [ + { + 'id': 'mockTokenTx1', + 'txParams': { + 'to': '0x8d6b81208414189a58339873ab429b6c47ab92d3' + }, + 'time': 1700000000000 + }, + { + 'id': 'mockTokenTx2', + 'txParams': { + 'to': '0xafaketokenaddress' + }, + 'time': 1600000000000 + }, + { + 'id': 'mockTokenTx3', + 'txParams': { + 'to': '0x8d6b81208414189a58339873ab429b6c47ab92d3' + }, + 'time': 1500000000000 + }, + { + 'id': 'mockEthTx1', + 'txParams': { + 'to': '0xd85a4b6a394794842887b8284293d69163007bbb' + }, + 'time': 1400000000000 + } + ], 'selectedTokenAddress': '0x8d6b81208414189a58339873ab429b6c47ab92d3', - 'unapprovedMsgs': {}, + 'unapprovedMsgs': { + '0xabc': { id: 'unapprovedMessage1', 'time': 1650000000000 }, + '0xdef': { id: 'unapprovedMessage2', 'time': 1550000000000 }, + '0xghi': { id: 'unapprovedMessage3', 'time': 1450000000000 }, + }, 'unapprovedMsgCount': 0, 'unapprovedPersonalMsgs': {}, 'unapprovedPersonalMsgCount': 0, @@ -116,7 +149,11 @@ module.exports = { 'provider': { 'type': 'testnet', }, - 'shapeShiftTxList': [], + 'shapeShiftTxList': [ + { id: 'shapeShiftTx1', 'time': 1675000000000 }, + { id: 'shapeShiftTx2', 'time': 1575000000000 }, + { id: 'shapeShiftTx3', 'time': 1475000000000 }, + ], 'lostAccounts': [], 'send': { 'gasLimit': '0xFFFF', @@ -158,7 +195,7 @@ module.exports = { 'txValue': 'de0b6b3a7640000', 'maxCost': 'de234b52e4a0800', 'gasPrice': '4a817c800', - }, + } }, 'currentLocale': 'en', }, |