1
0
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:
Dan 2018-05-14 09:49:09 -02:30
parent b3f08681fd
commit 0076b732bd
15 changed files with 14 additions and 14 deletions

View File

@ -10,7 +10,7 @@ const ethUtil = require('ethereumjs-util')
import {
updateSendErrors,
} from '../../ducks/send'
} from '../../ducks/send.duck'
const {
MIN_GAS_PRICE_DEC,

View File

@ -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,

View File

@ -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,

View File

@ -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)

View File

@ -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', () => {

View File

@ -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)

View File

@ -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', () => {

View File

@ -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)

View File

@ -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', () => {

View File

@ -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)

View File

@ -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', () => {

View File

@ -26,7 +26,7 @@ import {
} from '../../actions'
import {
updateSendErrors,
} from '../../ducks/send'
} from '../../ducks/send.duck'
import {
calcGasTotal,
generateTokenTransferData,

View File

@ -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}`,

View File

@ -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