aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/tests
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-26 01:09:31 +0800
committerDan <danjm.com@gmail.com>2018-05-26 01:09:31 +0800
commite712336189e1a0a453ea30dbb58abbc3c57db8f8 (patch)
tree13137b391037515880ebd227a293ea75dfa1bbe8 /ui/app/components/send_/tests
parent0de765aa25637cd85e22eebd11b6c4c8a32faf14 (diff)
downloadtangerine-wallet-browser-e712336189e1a0a453ea30dbb58abbc3c57db8f8.tar.gz
tangerine-wallet-browser-e712336189e1a0a453ea30dbb58abbc3c57db8f8.tar.zst
tangerine-wallet-browser-e712336189e1a0a453ea30dbb58abbc3c57db8f8.zip
Send refactor: fix error handling and form disabling in send form.
Diffstat (limited to 'ui/app/components/send_/tests')
-rw-r--r--ui/app/components/send_/tests/send-selectors.test.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/ui/app/components/send_/tests/send-selectors.test.js b/ui/app/components/send_/tests/send-selectors.test.js
index 9dc207ead..977fe2a47 100644
--- a/ui/app/components/send_/tests/send-selectors.test.js
+++ b/ui/app/components/send_/tests/send-selectors.test.js
@@ -36,7 +36,6 @@ const {
getTokenBalance,
getTokenExchangeRate,
getUnapprovedTxs,
- isSendFormInError,
transactionsSelector,
} = selectors
import mockState from './send-selectors-test-data'
@@ -546,39 +545,6 @@ describe('send selectors', () => {
})
})
- describe('isSendFormInError()', () => {
- it('should return true if amount or to errors are truthy', () => {
- const editedMockState1 = {
- send: Object.assign({}, mockState.send, {
- errors: { amount: true },
- }),
- }
- assert.deepEqual(
- isSendFormInError(editedMockState1),
- true
- )
- const editedMockState2 = {
- send: Object.assign({}, mockState.send, {
- errors: { to: true },
- }),
- }
- assert.deepEqual(
- isSendFormInError(editedMockState2),
- true
- )
- })
-
- it('should return false if amount is falsy and to is null', () => {
- const editedMockState = {
- send: Object.assign({}, mockState.send, { errors: { amount: false, to: null } }),
- }
- assert.deepEqual(
- isSendFormInError(editedMockState),
- false
- )
- })
- })
-
describe('transactionsSelector()', () => {
it('should return the selected addresses selected token transactions', () => {
assert.deepEqual(