Use pure redux on console
This commit is contained in:
parent
4fa93663d7
commit
85b4bd5b07
4 changed files with 61 additions and 63 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue