Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Add required props for TransactionListItemDetails tests (MetaMask#7834)
Browse files Browse the repository at this point in the history
  • Loading branch information
whymarrh authored and yqrashawn committed Jan 19, 2020
1 parent 124c665 commit 791659d
Showing 1 changed file with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ describe('TransactionListItemDetails Component', () => {
}

const wrapper = shallow(
<TransactionListItemDetails transactionGroup={transactionGroup} />,
<TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup}
/>,
{ context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } }
)

Expand Down Expand Up @@ -67,6 +72,9 @@ describe('TransactionListItemDetails Component', () => {

const wrapper = shallow(
<TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup}
showSpeedUp
/>,
Expand Down Expand Up @@ -99,7 +107,12 @@ describe('TransactionListItemDetails Component', () => {
}

const wrapper = shallow(
<TransactionListItemDetails transactionGroup={transactionGroup} />,
<TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup}
/>,
{ context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } }
)

Expand Down Expand Up @@ -132,7 +145,12 @@ describe('TransactionListItemDetails Component', () => {
}

const wrapper = shallow(
<TransactionListItemDetails transactionGroup={transactionGroup} />,
<TransactionListItemDetails
recipientAddress="0x1"
senderAddress="0x2"
tryReverseResolveAddress={() => {}}
transactionGroup={transactionGroup}
/>,
{ context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) } }
)

Expand Down

0 comments on commit 791659d

Please sign in to comment.