mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Rename ducks/send.js to ducks/send.duck.js
This commit is contained in:
parent
b3f08681fd
commit
0076b732bd
@ -10,7 +10,7 @@ const ethUtil = require('ethereumjs-util')
|
||||
|
||||
import {
|
||||
updateSendErrors,
|
||||
} from '../../ducks/send'
|
||||
} from '../../ducks/send.duck'
|
||||
|
||||
const {
|
||||
MIN_GAS_PRICE_DEC,
|
||||
|
@ -31,7 +31,7 @@ const { SEND_ROUTE, DEFAULT_ROUTE } = require('../../routes')
|
||||
|
||||
import {
|
||||
updateSendErrors,
|
||||
} from '../../ducks/send'
|
||||
} from '../../ducks/send.duck'
|
||||
|
||||
ConfirmSendEther.contextTypes = {
|
||||
t: PropTypes.func,
|
||||
|
@ -41,7 +41,7 @@ const { SEND_ROUTE, DEFAULT_ROUTE } = require('../../routes')
|
||||
|
||||
import {
|
||||
updateSendErrors,
|
||||
} from '../../ducks/send'
|
||||
} from '../../ducks/send.duck'
|
||||
|
||||
ConfirmSendToken.contextTypes = {
|
||||
t: PropTypes.func,
|
||||
|
@ -14,7 +14,7 @@ import {
|
||||
import AmountMaxButton from './amount-max-button.component'
|
||||
import {
|
||||
updateSendErrors,
|
||||
} from '../../../../../ducks/send'
|
||||
} from '../../../../../ducks/send.duck'
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(AmountMaxButton)
|
||||
|
||||
|
@ -30,7 +30,7 @@ proxyquire('../amount-max-button.container.js', {
|
||||
'./amount-max-button.selectors.js': { getMaxModeOn: (s) => `mockMaxModeOn:${s}` },
|
||||
'./amount-max-button.utils.js': { calcMaxAmount: (mockObj) => mockObj.val + 1 },
|
||||
'../../../../../actions': actionSpies,
|
||||
'../../../../../ducks/send': duckActionSpies,
|
||||
'../../../../../ducks/send.duck': duckActionSpies,
|
||||
})
|
||||
|
||||
describe('amount-max-button container', () => {
|
||||
|
@ -20,7 +20,7 @@ import {
|
||||
} from '../../../../actions'
|
||||
import {
|
||||
updateSendErrors,
|
||||
} from '../../../../ducks/send'
|
||||
} from '../../../../ducks/send.duck'
|
||||
import SendAmountRow from './send-amount-row.component'
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(SendAmountRow)
|
||||
|
@ -35,7 +35,7 @@ proxyquire('../send-amount-row.container.js', {
|
||||
'./send-amount-row.selectors': { sendAmountIsInError: (s) => `mockInError:${s}` },
|
||||
'../../send.utils': { getAmountErrorObject: (mockDataObject) => ({ ...mockDataObject, mockChange: true }) },
|
||||
'../../../../actions': actionSpies,
|
||||
'../../../../ducks/send': duckActionSpies,
|
||||
'../../../../ducks/send.duck': duckActionSpies,
|
||||
})
|
||||
|
||||
describe('send-amount-row container', () => {
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
import {
|
||||
closeFromDropdown,
|
||||
openFromDropdown,
|
||||
} from '../../../../ducks/send'
|
||||
} from '../../../../ducks/send.duck'
|
||||
import SendFromRow from './send-from-row.component'
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(SendFromRow)
|
||||
|
@ -31,7 +31,7 @@ proxyquire('../send-from-row.container.js', {
|
||||
'./send-from-row.selectors.js': { getFromDropdownOpen: (s) => `mockFromDropdownOpen:${s}` },
|
||||
'../../send.utils.js': { calcTokenBalance: (a, b) => a + b },
|
||||
'../../../../actions': actionSpies,
|
||||
'../../../../ducks/send': duckActionSpies,
|
||||
'../../../../ducks/send.duck': duckActionSpies,
|
||||
})
|
||||
|
||||
describe('send-from-row container', () => {
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
updateSendErrors,
|
||||
openToDropdown,
|
||||
closeToDropdown,
|
||||
} from '../../../../ducks/send'
|
||||
} from '../../../../ducks/send.duck'
|
||||
import SendToRow from './send-to-row.component'
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(SendToRow)
|
||||
|
@ -33,7 +33,7 @@ proxyquire('../send-to-row.container.js', {
|
||||
},
|
||||
'./send-to-row.utils.js': { getToErrorObject: (t) => `mockError:${t}` },
|
||||
'../../../../actions': actionSpies,
|
||||
'../../../../ducks/send': duckActionSpies,
|
||||
'../../../../ducks/send.duck': duckActionSpies,
|
||||
})
|
||||
|
||||
describe('send-to-row container', () => {
|
||||
|
@ -26,7 +26,7 @@ import {
|
||||
} from '../../actions'
|
||||
import {
|
||||
updateSendErrors,
|
||||
} from '../../ducks/send'
|
||||
} from '../../ducks/send.duck'
|
||||
import {
|
||||
calcGasTotal,
|
||||
generateTokenTransferData,
|
||||
|
@ -42,7 +42,7 @@ proxyquire('../send.container.js', {
|
||||
getTokenBalance: (s) => `mockTokenBalance:${s}`,
|
||||
},
|
||||
'../../actions': actionSpies,
|
||||
'../../ducks/send': duckActionSpies,
|
||||
'../../ducks/send.duck': duckActionSpies,
|
||||
'./send.utils.js': {
|
||||
calcGasTotal: (gasLimit, gasPrice) => gasLimit + gasPrice,
|
||||
generateTokenTransferData: (a, b) => `mockData:${a + b}`,
|
||||
|
@ -8,7 +8,7 @@ const reduceIdentities = require('./reducers/identities')
|
||||
const reduceMetamask = require('./reducers/metamask')
|
||||
const reduceApp = require('./reducers/app')
|
||||
const reduceLocale = require('./reducers/locale')
|
||||
const reduceSend = require('./ducks/send').default
|
||||
const reduceSend = require('./ducks/send.duck').default
|
||||
|
||||
window.METAMASK_CACHED_LOG_STATE = null
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user