reset follow on enabled

jh-changes
Shin'ya Ueoka 7 years ago
parent 370e20d76a
commit 38fee74760
  1. 1
      src/reducers/follow.js
  2. 1
      test/reducers/follow.test.js

@ -12,6 +12,7 @@ export default function reducer(state = defaultState, action = {}) {
return Object.assign({}, state, {
enabled: true,
newTab: action.newTab,
keys: '',
});
case actions.FOLLOW_DISABLE:
return Object.assign({}, state, {

@ -15,6 +15,7 @@ describe('follow reducer', () => {
let state = followReducer({ enabled: false, newTab: false }, action);
expect(state).to.have.property('enabled', true);
expect(state).to.have.property('newTab', true);
expect(state).to.have.property('keys', '');
});
it ('returns next state for FOLLOW_DISABLE', () => {