aboutsummaryrefslogtreecommitdiff
path: root/test/console/actions/console.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 20:01:57 +0900
committerGitHub <noreply@github.com>2017-10-08 20:01:57 +0900
commit8b9125871b59d915324176ab959bb0aed20a727a (patch)
treea10db125bd25c1447bb08de2ef156c010243f019 /test/console/actions/console.test.js
parentbbf90e77e99846c970118744066fbc21006761b5 (diff)
parent7ac00fce6f6c431f96c531179c6af3796df7e07a (diff)
Merge pull request #24 from ueokande/yank-url
Yank url
Diffstat (limited to 'test/console/actions/console.test.js')
-rw-r--r--test/console/actions/console.test.js14
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);
});
});