|
|
|
@ -1303,10 +1303,7 @@ describe('Send Slice', () => { |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -1355,10 +1352,7 @@ describe('Send Slice', () => { |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -1398,16 +1392,13 @@ describe('Send Slice', () => { |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(4); |
|
|
|
|
expect(actionResult).toHaveLength(3); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual('send/updateSendAmount'); |
|
|
|
|
expect(actionResult[1].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -1460,7 +1451,7 @@ describe('Send Slice', () => { |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(4); |
|
|
|
|
expect(actionResult).toHaveLength(3); |
|
|
|
|
|
|
|
|
|
expect(actionResult[0].type).toStrictEqual('send/updateAsset'); |
|
|
|
|
expect(actionResult[0].payload).toStrictEqual({ |
|
|
|
@ -1473,10 +1464,7 @@ describe('Send Slice', () => { |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -1503,7 +1491,7 @@ describe('Send Slice', () => { |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(6); |
|
|
|
|
expect(actionResult).toHaveLength(5); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual('SHOW_LOADING_INDICATION'); |
|
|
|
|
expect(actionResult[1].type).toStrictEqual('HIDE_LOADING_INDICATION'); |
|
|
|
|
expect(actionResult[2].payload).toStrictEqual({ |
|
|
|
@ -1516,10 +1504,7 @@ describe('Send Slice', () => { |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[4].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[5].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -1704,16 +1689,13 @@ describe('Send Slice', () => { |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(4); |
|
|
|
|
expect(actionResult).toHaveLength(3); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual('send/updateRecipient'); |
|
|
|
|
expect(actionResult[1].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -1772,7 +1754,7 @@ describe('Send Slice', () => { |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
expect(actionResult).toHaveLength(4); |
|
|
|
|
expect(actionResult).toHaveLength(3); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual('send/updateRecipient'); |
|
|
|
|
expect(actionResult[0].payload.address).toStrictEqual( |
|
|
|
|
TEST_RECIPIENT_ADDRESS, |
|
|
|
@ -1822,16 +1804,13 @@ describe('Send Slice', () => { |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(4); |
|
|
|
|
expect(actionResult).toHaveLength(3); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual('send/updateRecipient'); |
|
|
|
|
expect(actionResult[1].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -1896,7 +1875,7 @@ describe('Send Slice', () => { |
|
|
|
|
await store.dispatch(resetRecipientInput()); |
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(7); |
|
|
|
|
expect(actionResult).toHaveLength(6); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual( |
|
|
|
|
'send/updateRecipientUserInput', |
|
|
|
|
); |
|
|
|
@ -1906,13 +1885,10 @@ describe('Send Slice', () => { |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[4].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[5].type).toStrictEqual('ENS/resetEnsResolution'); |
|
|
|
|
expect(actionResult[6].type).toStrictEqual( |
|
|
|
|
expect(actionResult[4].type).toStrictEqual('ENS/resetEnsResolution'); |
|
|
|
|
expect(actionResult[5].type).toStrictEqual( |
|
|
|
|
'send/validateRecipientUserInput', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
@ -1979,17 +1955,14 @@ describe('Send Slice', () => { |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(5); |
|
|
|
|
expect(actionResult).toHaveLength(4); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual('send/updateAmountMode'); |
|
|
|
|
expect(actionResult[1].type).toStrictEqual('send/updateAmountToMax'); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[4].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -2026,17 +1999,14 @@ describe('Send Slice', () => { |
|
|
|
|
|
|
|
|
|
const actionResult = store.getActions(); |
|
|
|
|
|
|
|
|
|
expect(actionResult).toHaveLength(5); |
|
|
|
|
expect(actionResult).toHaveLength(4); |
|
|
|
|
expect(actionResult[0].type).toStrictEqual('send/updateAmountMode'); |
|
|
|
|
expect(actionResult[1].type).toStrictEqual('send/updateSendAmount'); |
|
|
|
|
expect(actionResult[2].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/pending', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[3].type).toStrictEqual( |
|
|
|
|
'metamask/gas/SET_CUSTOM_GAS_LIMIT', |
|
|
|
|
); |
|
|
|
|
expect(actionResult[4].type).toStrictEqual( |
|
|
|
|
'send/computeEstimatedGasLimit/fulfilled', |
|
|
|
|
'send/computeEstimatedGasLimit/rejected', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|