diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-03-04 21:38:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-04 21:38:29 +0900 |
commit | 72bf3cc2bdcc63864e064a64f7459aba004f4538 (patch) | |
tree | 4a34e2d408cd4f7d29e634b98dea2c07ca10ece9 /test/console/reducers/console.test.js | |
parent | 0211d7781fffdb0f4e9a5e523f0f6ea24c5c8db8 (diff) | |
parent | 5cd8c81fda2f07bc6ca5b1ee9264a02fae16c5c0 (diff) |
Merge pull request #354 from ueokande/hide-console
Hide console
Diffstat (limited to 'test/console/reducers/console.test.js')
-rw-r--r-- | test/console/reducers/console.test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/console/reducers/console.test.js b/test/console/reducers/console.test.js index 438d513..d196011 100644 --- a/test/console/reducers/console.test.js +++ b/test/console/reducers/console.test.js @@ -13,6 +13,12 @@ describe("console reducer", () => { expect(state).to.have.property('itemSelection', -1); }); + it('return next state for CONSOLE_HIDE', () => { + let action = { type: actions.CONSOLE_HIDE }; + let state = reducer({ mode: 'error' }, action); + expect(state).to.have.property('mode', ''); + }) + it('return next state for CONSOLE_SHOW_COMMAND', () => { let action = { type: actions.CONSOLE_SHOW_COMMAND, text: 'open ' }; let state = reducer({}, action); |