|
|
@ -1,5 +1,4 @@ |
|
|
|
import configStore from '../src/redux/CreateStore'; |
|
|
|
import {navReducer} from '../src/redux/reducers/NavReducer'; |
|
|
|
import {systemReducer} from '../src/redux/reducers/SystemReducer'; |
|
|
|
import rootReducer from '../src/redux/reducers/RootReducer'; |
|
|
|
import { APP_INIT } from '../src/redux/types/SystemTypes'; |
|
|
@ -13,11 +12,6 @@ test('rootReducer constructs', () => { |
|
|
|
expect(rootReducer).toEqual(expect.anything()); |
|
|
|
}) |
|
|
|
|
|
|
|
test('navReducer response to app-init', () => { |
|
|
|
let nextState = navReducer({}, {type: APP_INIT}); |
|
|
|
expect(nextState).toEqual({}); |
|
|
|
}) |
|
|
|
|
|
|
|
test('systemReducer response to app-init', () => { |
|
|
|
let nextState = systemReducer.system({}, {type: APP_INIT, system: {value: 0}}); |
|
|
|
expect(nextState.value).toEqual(0); |
|
|
|