aboutsummaryrefslogtreecommitdiff
path: root/test/console/reducers/console.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/console/reducers/console.test.js')
-rw-r--r--test/console/reducers/console.test.js7
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);