diff options
| author | Guillaume | 2017-10-16 17:57:25 +0200 | 
|---|---|---|
| committer | Guillaume | 2017-10-16 17:57:25 +0200 | 
| commit | 1c8f131301e7efa828f60945273bfb6b16a0e430 (patch) | |
| tree | 1ca83adf5782e94be25627a9a6b8210a95ca7c63 /app/javascript | |
| parent | 6346c658c6e6775b7e50c042602f4dfb0aca52ce (diff) | |
| download | chouette-core-1c8f131301e7efa828f60945273bfb6b16a0e430.tar.bz2 | |
add jest for js test, fix js test errors, remove unused config in config/environement
Diffstat (limited to 'app/javascript')
| -rw-r--r-- | app/javascript/journey_patterns/reducers/journeyPatterns.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/app/javascript/journey_patterns/reducers/journeyPatterns.js b/app/javascript/journey_patterns/reducers/journeyPatterns.js index 7702e21bc..0bbcba976 100644 --- a/app/javascript/journey_patterns/reducers/journeyPatterns.js +++ b/app/javascript/journey_patterns/reducers/journeyPatterns.js @@ -1,7 +1,7 @@  import _ from 'lodash'  import actions from "../actions" -export default function journeyPattern(state = {}, action) { +const journeyPattern = (state = {}, action) =>{    switch (action.type) {      case 'ADD_JOURNEYPATTERN':        let stopPoints = window.stopPoints @@ -33,7 +33,7 @@ export default function journeyPattern(state = {}, action) {    }  } -const journeyPatterns = (state = [], action) => { +export default function journeyPatterns (state = [], action)  {    switch (action.type) {      case 'RECEIVE_JOURNEY_PATTERNS':        return [...action.json] | 
