show find in console
This commit is contained in:
parent
cb4b26e03f
commit
be37c42d28
11 changed files with 45 additions and 9 deletions
|
@ -11,6 +11,13 @@ describe("console actions", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("showFind", () => {
|
||||
it('create CONSOLE_SHOW_FIND action', () => {
|
||||
let action = consoleActions.showFind();
|
||||
expect(action.type).to.equal(actions.CONSOLE_SHOW_FIND);
|
||||
});
|
||||
});
|
||||
|
||||
describe("showInfo", () => {
|
||||
it('create CONSOLE_SHOW_INFO action', () => {
|
||||
let action = consoleActions.showInfo('an info');
|
||||
|
|
|
@ -7,7 +7,7 @@ describe("console reducer", () => {
|
|||
let state = reducer(undefined, {});
|
||||
expect(state).to.have.property('mode', '');
|
||||
expect(state).to.have.property('messageText', '');
|
||||
expect(state).to.have.property('commandText', '');
|
||||
expect(state).to.have.property('consoleText', '');
|
||||
expect(state).to.have.deep.property('completions', []);
|
||||
expect(state).to.have.property('groupSelection', -1);
|
||||
expect(state).to.have.property('itemSelection', -1);
|
||||
|
@ -17,7 +17,7 @@ describe("console reducer", () => {
|
|||
let action = { type: actions.CONSOLE_SHOW_COMMAND, text: 'open ' };
|
||||
let state = reducer({}, action);
|
||||
expect(state).to.have.property('mode', 'command');
|
||||
expect(state).to.have.property('commandText', 'open ');
|
||||
expect(state).to.have.property('consoleText', 'open ');
|
||||
});
|
||||
|
||||
it('return next state for CONSOLE_SHOW_INFO', () => {
|
||||
|
|
Reference in a new issue