|
|
@ -27,22 +27,22 @@ describe('SendFooter Component', function () { |
|
|
|
beforeEach(() => { |
|
|
|
beforeEach(() => { |
|
|
|
wrapper = shallow(<SendFooter |
|
|
|
wrapper = shallow(<SendFooter |
|
|
|
addToAddressBookIfNew={propsMethodSpies.addToAddressBookIfNew} |
|
|
|
addToAddressBookIfNew={propsMethodSpies.addToAddressBookIfNew} |
|
|
|
amount={'mockAmount'} |
|
|
|
amount="mockAmount" |
|
|
|
clearSend={propsMethodSpies.clearSend} |
|
|
|
clearSend={propsMethodSpies.clearSend} |
|
|
|
disabled={true} |
|
|
|
disabled={true} |
|
|
|
editingTransactionId={'mockEditingTransactionId'} |
|
|
|
editingTransactionId="mockEditingTransactionId" |
|
|
|
errors={{}} |
|
|
|
errors={{}} |
|
|
|
from={ { address: 'mockAddress', balance: 'mockBalance' } } |
|
|
|
from={ { address: 'mockAddress', balance: 'mockBalance' } } |
|
|
|
gasLimit={'mockGasLimit'} |
|
|
|
gasLimit="mockGasLimit" |
|
|
|
gasPrice={'mockGasPrice'} |
|
|
|
gasPrice="mockGasPrice" |
|
|
|
gasTotal={'mockGasTotal'} |
|
|
|
gasTotal="mockGasTotal" |
|
|
|
history={historySpies} |
|
|
|
history={historySpies} |
|
|
|
inError={false} |
|
|
|
inError={false} |
|
|
|
selectedToken={{ mockProp: 'mockSelectedTokenProp' }} |
|
|
|
selectedToken={{ mockProp: 'mockSelectedTokenProp' }} |
|
|
|
sign={propsMethodSpies.sign} |
|
|
|
sign={propsMethodSpies.sign} |
|
|
|
to={'mockTo'} |
|
|
|
to="mockTo" |
|
|
|
toAccounts={['mockAccount']} |
|
|
|
toAccounts={['mockAccount']} |
|
|
|
tokenBalance={'mockTokenBalance'} |
|
|
|
tokenBalance="mockTokenBalance" |
|
|
|
unapprovedTxs={['mockTx']} |
|
|
|
unapprovedTxs={['mockTx']} |
|
|
|
update={propsMethodSpies.update} |
|
|
|
update={propsMethodSpies.update} |
|
|
|
sendErrors={{}} |
|
|
|
sendErrors={{}} |
|
|
@ -184,22 +184,22 @@ describe('SendFooter Component', function () { |
|
|
|
sinon.stub(SendFooter.prototype, 'formShouldBeDisabled').returns('formShouldBeDisabledReturn') |
|
|
|
sinon.stub(SendFooter.prototype, 'formShouldBeDisabled').returns('formShouldBeDisabledReturn') |
|
|
|
wrapper = shallow(<SendFooter |
|
|
|
wrapper = shallow(<SendFooter |
|
|
|
addToAddressBookIfNew={propsMethodSpies.addToAddressBookIfNew} |
|
|
|
addToAddressBookIfNew={propsMethodSpies.addToAddressBookIfNew} |
|
|
|
amount={'mockAmount'} |
|
|
|
amount="mockAmount" |
|
|
|
clearSend={propsMethodSpies.clearSend} |
|
|
|
clearSend={propsMethodSpies.clearSend} |
|
|
|
disabled={true} |
|
|
|
disabled={true} |
|
|
|
editingTransactionId={'mockEditingTransactionId'} |
|
|
|
editingTransactionId="mockEditingTransactionId" |
|
|
|
errors={{}} |
|
|
|
errors={{}} |
|
|
|
from={ { address: 'mockAddress', balance: 'mockBalance' } } |
|
|
|
from={ { address: 'mockAddress', balance: 'mockBalance' } } |
|
|
|
gasLimit={'mockGasLimit'} |
|
|
|
gasLimit="mockGasLimit" |
|
|
|
gasPrice={'mockGasPrice'} |
|
|
|
gasPrice="mockGasPrice" |
|
|
|
gasTotal={'mockGasTotal'} |
|
|
|
gasTotal="mockGasTotal" |
|
|
|
history={historySpies} |
|
|
|
history={historySpies} |
|
|
|
inError={false} |
|
|
|
inError={false} |
|
|
|
selectedToken={{ mockProp: 'mockSelectedTokenProp' }} |
|
|
|
selectedToken={{ mockProp: 'mockSelectedTokenProp' }} |
|
|
|
sign={propsMethodSpies.sign} |
|
|
|
sign={propsMethodSpies.sign} |
|
|
|
to={'mockTo'} |
|
|
|
to="mockTo" |
|
|
|
toAccounts={['mockAccount']} |
|
|
|
toAccounts={['mockAccount']} |
|
|
|
tokenBalance={'mockTokenBalance'} |
|
|
|
tokenBalance="mockTokenBalance" |
|
|
|
unapprovedTxs={['mockTx']} |
|
|
|
unapprovedTxs={['mockTx']} |
|
|
|
update={propsMethodSpies.update} |
|
|
|
update={propsMethodSpies.update} |
|
|
|
/>, { context: { t: str => str, metricsEvent: () => ({}) } }) |
|
|
|
/>, { context: { t: str => str, metricsEvent: () => ({}) } }) |
|
|
|