/**
 * Test store addons
 */

import history from '../utils/history';
import { configureStore }  from '@capillarytech/vulcan-react-sdk/utils';
import { initialReducer } from '../initialReducer';

describe('configureStore', () => {
  let store;

  beforeAll(() => {
    store = configureStore({}, initialReducer, history);
  });

  describe('initialReducer', () => {
    it('should contain an object for async reducers', () => {
      expect(typeof store.initialReducer).toBe('object');
    });
  });

  describe('runSaga', () => {
    it('should contain a hook for `sagaMiddleware.run`', () => {
      expect(typeof store.runSaga).toBe('function');
    });
  });
});
