diff options
Diffstat (limited to 'test/console/actions')
| -rw-r--r-- | test/console/actions/console.test.js | 14 | 
1 files changed, 11 insertions, 3 deletions
diff --git a/test/console/actions/console.test.js b/test/console/actions/console.test.js index dd04c85..3b02d4a 100644 --- a/test/console/actions/console.test.js +++ b/test/console/actions/console.test.js @@ -11,6 +11,14 @@ describe("console actions", () => {      });    }); +  describe("showInfo", () => { +    it('create CONSOLE_SHOW_INFO action', () => { +      let action = consoleActions.showInfo('an info'); +      expect(action.type).to.equal(actions.CONSOLE_SHOW_INFO); +      expect(action.text).to.equal('an info'); +    }); +  }); +    describe("showError", () => {      it('create CONSOLE_SHOW_ERROR action', () => {        let action = consoleActions.showError('an error'); @@ -20,9 +28,9 @@ describe("console actions", () => {    });    describe("hide", () => { -    it('create CONSOLE_HIDE action', () => { -      let action = consoleActions.hide(); -      expect(action.type).to.equal(actions.CONSOLE_HIDE); +    it('create CONSOLE_HIDE_COMMAND action', () => { +      let action = consoleActions.hideCommand(); +      expect(action.type).to.equal(actions.CONSOLE_HIDE_COMMAND);      });    });  | 
