diff options
-rw-r--r-- | src/reducers/follow.js | 1 | ||||
-rw-r--r-- | test/reducers/follow.test.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/reducers/follow.js b/src/reducers/follow.js index 27543ec..ed875e8 100644 --- a/src/reducers/follow.js +++ b/src/reducers/follow.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, { diff --git a/test/reducers/follow.test.js b/test/reducers/follow.test.js index 0b5e3bd..e1db680 100644 --- a/test/reducers/follow.test.js +++ b/test/reducers/follow.test.js @@ -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', () => { |