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, 6 insertions, 1 deletions
diff --git a/test/console/reducers/console.test.js b/test/console/reducers/console.test.js
index 438d513..db40088 100644
--- a/test/console/reducers/console.test.js
+++ b/test/console/reducers/console.test.js
@@ -1,4 +1,3 @@
-import { expect } from "chai";
import actions from 'console/actions';
import reducer from 'console/reducers';
@@ -13,6 +12,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);