aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 10:12:52 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 10:12:52 +0900
commit38fee747603d37a99f1a8d156f41ea3d7c400b78 (patch)
tree64ca61c590f16fb3af5d304e92872fa375b37532
parent370e20d76ad52daad0f3fcae33372434b45e3bac (diff)
reset follow on enabled
-rw-r--r--src/reducers/follow.js1
-rw-r--r--test/reducers/follow.test.js1
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', () => {