Add required props for TransactionListItemDetails tests (#7834)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent dcf8eb2187
commit 48c9b0174f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      ui/app/components/app/transaction-list-item-details/tests/transaction-list-item-details.component.test.js

@ -31,6 +31,9 @@ describe('TransactionListItemDetails Component', () => {
const wrapper = shallow( const wrapper = shallow(
<TransactionListItemDetails <TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup} transactionGroup={transactionGroup}
/>, />,
{ context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } } { context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } }
@ -69,6 +72,9 @@ describe('TransactionListItemDetails Component', () => {
const wrapper = shallow( const wrapper = shallow(
<TransactionListItemDetails <TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup} transactionGroup={transactionGroup}
showSpeedUp showSpeedUp
/>, />,
@ -102,6 +108,9 @@ describe('TransactionListItemDetails Component', () => {
const wrapper = shallow( const wrapper = shallow(
<TransactionListItemDetails <TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup} transactionGroup={transactionGroup}
/>, />,
{ context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } } { context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } }
@ -137,6 +146,9 @@ describe('TransactionListItemDetails Component', () => {
const wrapper = shallow( const wrapper = shallow(
<TransactionListItemDetails <TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup} transactionGroup={transactionGroup}
/>, />,
{ context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } } { context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } }

Loading…
Cancel
Save