content: import React from 'react';
  import jsdom from 'jsdom';
  import { Provider } from 'react-redux';
  import { createStore } from 'redux';
  import { shallow, mount } from 'enzyme';
  import reducers from '../src/reducers';
  
  if (typeof document === 'undefined') {
    global.document = jsdom.jsdom('<!doctype html><html><body></body></html>');
    global.window = global.document.defaultView;
    global.navigator = global.window.navigator;
  }
  
  export function shallowComponent(ComponentClass, props, state) {
    return shallow(
      <Provider store={createStore(reducers, state)}>
        <ComponentClass {...props} />
      </Provider>
    );
  }
  
  export function mountComponent(ComponentClass, props, state) {
    return mount(
      <Provider store={createStore(reducers, state)}>
        <ComponentClass {...props} />
      </Provider>
    );
  }
  