text: import actionTypes from './../actionTypes'
  
  import editing from './editing'
  
  describe('[reduxReducer] editing', ()=>{
    let result; let state; let data
    beforeEach(()=>{
      state = {name: 'Hello World', hash: 'ht3st'}
      data = {type: '', payload: state}
      result = null
    })
  
    it('[SaveCreature] clears creature state', ()=>{
      data.type = actionTypes.SaveCreature
      result = editing(state, data)
      expect(result).toEqual({})
    })
  
    it('[SetEditCreature] updates state to a hash', ()=>{
      data.type = actionTypes.SetEditCreature
      data.payload = {name: 'World, hello'}
      result = editing(state, data)
      expect(result).toEqual(data.payload)
    })
  
    it('[UpdateEditCreature] updates a key', () => {
      data.type = actionTypes.UpdateEditCreature
      data.payload = {key: 'name', value: 'New Name Value'}
      result = editing(state, data)
      expect(result.name).toBe('New Name Value')
    })
  })
  