28 lines
632 B
JavaScript
Raw Normal View History

2016-08-18 11:41:13 +02:00
/**
* Test store addons
*/
import expect from 'expect';
2016-08-18 11:47:26 +02:00
import configureStore from '../store'; // eslint-disable-line
2016-08-18 11:41:13 +02:00
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');
});
});
});