diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-08 19:08:51 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-08 19:58:36 +0900 |
commit | 7ac00fce6f6c431f96c531179c6af3796df7e07a (patch) | |
tree | a10db125bd25c1447bb08de2ef156c010243f019 /test/console/reducers | |
parent | b0d2b5328107a9a2018132938fb5a9efcd77fc50 (diff) |
Show info on yanked
Diffstat (limited to 'test/console/reducers')
-rw-r--r-- | test/console/reducers/console.test.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/console/reducers/console.test.js b/test/console/reducers/console.test.js index 497baf2..4f85e55 100644 --- a/test/console/reducers/console.test.js +++ b/test/console/reducers/console.test.js @@ -20,6 +20,13 @@ describe("console reducer", () => { expect(state).to.have.property('commandText', 'open '); }); + it('return next state for CONSOLE_SHOW_INFO', () => { + let action = { type: actions.CONSOLE_SHOW_INFO, text: 'an info' }; + let state = reducer({}, action); + expect(state).to.have.property('mode', 'info'); + expect(state).to.have.property('messageText', 'an info'); + }); + it('return next state for CONSOLE_SHOW_ERROR', () => { let action = { type: actions.CONSOLE_SHOW_ERROR, text: 'an error' }; let state = reducer({}, action); |