|
|
@ -5,25 +5,35 @@ import Pay from '../../../app/components/Form/Pay' |
|
|
|
|
|
|
|
const defaultProps = { |
|
|
|
payform: { |
|
|
|
amount: '', |
|
|
|
amount: 0, |
|
|
|
payInput: '', |
|
|
|
invoice: {}, |
|
|
|
showErrors: {} |
|
|
|
}, |
|
|
|
currency: 'BTC', |
|
|
|
crypto: 'BTC', |
|
|
|
currency: {}, |
|
|
|
crypto: {}, |
|
|
|
nodes: [], |
|
|
|
ticker: {}, |
|
|
|
|
|
|
|
isOnchain: false, |
|
|
|
isLn: false, |
|
|
|
currentAmount: '0', |
|
|
|
isLn: true, |
|
|
|
currentAmount: 0, |
|
|
|
usdAmount: 0, |
|
|
|
inputCaption: '', |
|
|
|
showPayLoadingScreen: false, |
|
|
|
showPayLoadingScreen: true, |
|
|
|
payFormIsValid: {}, |
|
|
|
currentCurrencyFilters: [], |
|
|
|
currencyName: '', |
|
|
|
|
|
|
|
setPayAmount: () => {}, |
|
|
|
onPayAmountBlur: () => {}, |
|
|
|
setPayInput: () => {}, |
|
|
|
onPayInputBlur: () => {}, |
|
|
|
setCurrencyFilters: () => {}, |
|
|
|
fetchInvoice: () => {}, |
|
|
|
setCurrency: () => {}, |
|
|
|
|
|
|
|
onPayAmountBlur: () => {}, |
|
|
|
|
|
|
|
onPayInputBlur: () => {}, |
|
|
|
|
|
|
|
onPaySubmit: () => {} |
|
|
|
} |
|
|
@ -34,8 +44,6 @@ describe('Form', () => { |
|
|
|
|
|
|
|
it('should contain Pay', () => { |
|
|
|
expect(el.find('input#paymentRequest').props.value).toBe(undefined) |
|
|
|
expect(el.contains('lightning network')).toBe(false) |
|
|
|
expect(el.contains('on-chain')).toBe(false) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
@ -45,8 +53,6 @@ describe('Form', () => { |
|
|
|
|
|
|
|
it('should contain Pay', () => { |
|
|
|
expect(el.find('input#paymentRequest').props.value).toBe(undefined) |
|
|
|
expect(el.contains('lightning network')).toBe(true) |
|
|
|
expect(el.contains('on-chain')).toBe(false) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
@ -56,8 +62,6 @@ describe('Form', () => { |
|
|
|
|
|
|
|
it('should contain Pay', () => { |
|
|
|
expect(el.find('input#paymentRequest').props.value).toBe(undefined) |
|
|
|
expect(el.contains('lightning network')).toBe(false) |
|
|
|
expect(el.contains('on-chain')).toBe(true) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|