mirror of
https://github.com/strapi/strapi.git
synced 2025-08-03 22:39:01 +00:00
28 lines
632 B
JavaScript
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');
|
|
});
|
|
});
|
|
});
|