console as redux architecture
This commit is contained in:
parent
e1c70769ea
commit
956dd937d3
7 changed files with 110 additions and 88 deletions
|
@ -43,6 +43,16 @@ describe("console reducer", () => {
|
|||
expect(state).to.have.property('mode', 'error');
|
||||
});
|
||||
|
||||
it('return next state for CONSOLE_SET_CONSOLE_TEXT', () => {
|
||||
let action = {
|
||||
type: actions.CONSOLE_SET_CONSOLE_TEXT,
|
||||
consoleText: 'hello world'
|
||||
}
|
||||
let state = reducer({}, action)
|
||||
|
||||
expect(state).to.have.property('consoleText', 'hello world');
|
||||
});
|
||||
|
||||
it ('return next state for CONSOLE_SET_COMPLETIONS', () => {
|
||||
let state = {
|
||||
groupSelection: 0,
|
||||
|
|
Reference in a new issue