aboutsummaryrefslogtreecommitdiff
path: root/test/console/actions/console.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-08 21:20:49 +0900
committerGitHub <noreply@github.com>2018-07-08 21:20:49 +0900
commit37840c2abb02948d36cdcfaab9063f3ea67fdb6b (patch)
tree2662c396dea1761f57ed508616d2c76389aba5f9 /test/console/actions/console.test.js
parent9f64b19bef06328999a5ed602ba89867402b9d5c (diff)
parent43beccfe0f323e2363fe97bdb6bc0d71558fda47 (diff)
Merge pull request #429 from ueokande/use-official-redux
Use official redux
Diffstat (limited to 'test/console/actions/console.test.js')
-rw-r--r--test/console/actions/console.test.js25
1 files changed, 8 insertions, 17 deletions
diff --git a/test/console/actions/console.test.js b/test/console/actions/console.test.js
index 77855cd..10cd9fe 100644
--- a/test/console/actions/console.test.js
+++ b/test/console/actions/console.test.js
@@ -23,14 +23,6 @@ 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');
@@ -39,6 +31,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("hideCommand", () => {
it('create CONSOLE_HIDE_COMMAND action', () => {
let action = consoleActions.hideCommand();
@@ -54,15 +54,6 @@ describe("console actions", () => {
});
});
- describe("setCompletions", () => {
- it('create CONSOLE_SET_COMPLETIONS action', () => {
- let action = consoleActions.setCompletions('query', [1, 2, 3]);
- expect(action.type).to.equal(actions.CONSOLE_SET_COMPLETIONS);
- expect(action.completionSource).to.deep.equal('query');
- expect(action.completions).to.deep.equal([1, 2, 3]);
- });
- });
-
describe("completionPrev", () => {
it('create CONSOLE_COMPLETION_PREV action', () => {
let action = consoleActions.completionPrev();