Skip to content

Commit

Permalink
test: add new state var
Browse files Browse the repository at this point in the history
  • Loading branch information
BZahory committed Jun 7, 2024
1 parent 7577989 commit a93a691
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/data/mock-send-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@
"status": "VALID",
"swapQuotesError": null,
"swapQuotesLatestRequestTimestamp": null,
"timeToFetchQuotes": null,
"transactionType": "0x2",
"userInputHexData": null
}
Expand Down
1 change: 1 addition & 0 deletions test/jest/mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const getInitialSendStateWithExistingTxState = (draftTxState) => ({
},
swapQuotesError: null,
swapQuotesLatestRequestTimestamp: null,
timeToFetchQuotes: null,
recipient: {
...draftTransactionInitialState.recipient,
...draftTxState.recipient,
Expand Down
4 changes: 4 additions & 0 deletions ui/ducks/send/send.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3305,6 +3305,7 @@ describe('Send Slice', () => {
status: SEND_STATUSES.VALID,
swapQuotesError: null,
swapQuotesLatestRequestTimestamp: null,
timeToFetchQuotes: null,
transactionType: '0x0',
userInputHexData: '',
},
Expand Down Expand Up @@ -3486,6 +3487,7 @@ describe('Send Slice', () => {
status: SEND_STATUSES.VALID,
swapQuotesError: null,
swapQuotesLatestRequestTimestamp: null,
timeToFetchQuotes: null,
transactionType: '0x0',
userInputHexData:
editTransactionState.metamask.transactions[0].txParams.data,
Expand Down Expand Up @@ -3716,6 +3718,7 @@ describe('Send Slice', () => {
status: SEND_STATUSES.VALID,
swapQuotesError: null,
swapQuotesLatestRequestTimestamp: null,
timeToFetchQuotes: null,
transactionType: '0x0',
userInputHexData:
editTransactionState.metamask.transactions[0].txParams.data,
Expand Down Expand Up @@ -3977,6 +3980,7 @@ describe('Send Slice', () => {
status: 'VALID',
swapQuotesError: null,
swapQuotesLatestRequestTimestamp: null,
timeToFetchQuotes: null,
test: 'test',
transactionType: '0x0',
userInputHexData: null,
Expand Down

0 comments on commit a93a691

Please sign in to comment.