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.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/console/reducers/console.test.js b/test/console/reducers/console.test.js
index 280d1b7..438d513 100644
--- a/test/console/reducers/console.test.js
+++ b/test/console/reducers/console.test.js
@@ -43,6 +43,16 @@ describe("console reducer", () => {
expect(state).to.have.property('mode', 'error');
});
+ it('return next state for CONSOLE_SET_CONSOLE_TEXT', () => {
+ let action = {
+ type: actions.CONSOLE_SET_CONSOLE_TEXT,
+ consoleText: 'hello world'
+ }
+ let state = reducer({}, action)
+
+ expect(state).to.have.property('consoleText', 'hello world');
+ });
+
it ('return next state for CONSOLE_SET_COMPLETIONS', () => {
let state = {
groupSelection: 0,