2016-12-01 16:44:03 +01:00

28 lines
632 B
JavaScript

/**
* Test store addons
*/
import expect from 'expect';
import configureStore from '../store'; // eslint-disable-line
import { browserHistory } from 'react-router';
describe('configureStore', () => {
let store;
before(() => {
store = configureStore({}, browserHistory);
});
describe('asyncReducers', () => {
it('should contain an object for async reducers', () => {
expect(typeof store.asyncReducers).toEqual('object');
});
});
describe('runSaga', () => {
it('should contain a hook for `sagaMiddleware.run`', () => {
expect(typeof store.runSaga).toEqual('function');
});
});
});