reset follow on enabled

This commit is contained in:
Shin'ya Ueoka 2017-10-08 10:12:52 +09:00
parent 370e20d76a
commit 38fee74760
2 changed files with 2 additions and 0 deletions

View file

@ -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, {

View file

@ -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', () => {