You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
662 B
19 lines
662 B
import configStore from '../src/redux/CreateStore';
|
|
import {systemReducer} from '../src/redux/reducers/SystemReducer';
|
|
import rootReducer from '../src/redux/reducers/RootReducer';
|
|
import { APP_INIT } from '../src/redux/types/SystemTypes';
|
|
jest.useRealTimers();
|
|
|
|
test('configures redux store', () => {
|
|
const configgedStore = configStore;
|
|
expect(configgedStore).toEqual(expect.anything());
|
|
})
|
|
|
|
test('rootReducer constructs', () => {
|
|
expect(rootReducer).toEqual(expect.anything());
|
|
})
|
|
|
|
test('systemReducer response to app-init', () => {
|
|
let nextState = systemReducer.system({}, {type: APP_INIT, system: {value: 0}});
|
|
expect(nextState.value).toEqual(0);
|
|
})
|