export const COUNTER_INCREMENT = 'COUNTER_INCREMENT'

export function increment (value = 1) {
  return {
    type    : COUNTER_INCREMENT,
    payload : value
  }
}

export const doubleAsync = () => (dispatch, getState) => new Promise((resolve) => {
  setTimeout(() => {
    dispatch(increment(getState().counter))
    resolve()
  }, 2000)
})

export const actions = {
  increment,
  doubleAsync
}

const ACTION_HANDLERS = {
  [COUNTER_INCREMENT] : (state, action) => state + action.payload
}

const initialState = 0
export default function counterReducer (state = initialState, action) {
  const handler = ACTION_HANDLERS[action.type]

  return handler ? handler(state, action) : state
}

@@ -329,17 +329,16 @@
   %7D, 200
-0
 )%0A%7D)%0A%0Aex

Fix breaking tests