Skip to content

Commit

Permalink
Merge pull request infinitered#579 from infinitered/fix-redux-templat…
Browse files Browse the repository at this point in the history
…e-case

Ensures uppercase when creating reducers with the redux generator.
  • Loading branch information
skellock authored Jan 3, 2017
2 parents adde7d8 + 27524b1 commit 58cc224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ignite-generator/redux/templates/redux.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const failure = state =>
/* ------------- Hookup Reducers To Types ------------- */

export const reducer = createReducer(INITIAL_STATE, {
[Types.<%= name.split(/(?=[A-Z])/).join('_') %>_REQUEST]: request,
[Types.<%= name.split(/(?=[A-Z])/).join('_') %>_SUCCESS]: success,
[Types.<%= name.split(/(?=[A-Z])/).join('_') %>_FAILURE]: failure
[Types.<%= name.split(/(?=[A-Z])/).join('_').toUpperCase() %>_REQUEST]: request,
[Types.<%= name.split(/(?=[A-Z])/).join('_').toUpperCase() %>_SUCCESS]: success,
[Types.<%= name.split(/(?=[A-Z])/).join('_').toUpperCase() %>_FAILURE]: failure
})

0 comments on commit 58cc224

Please sign in to comment.