import { shallow } from 'enzyme';
import { shallowToJson } from 'enzyme-to-json';
import React from 'react';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import { spy } from 'sinon';
import { initialState as {{ camelCase name }} } from '../reducer';
import {{ properCase name }}Container from '../index';

const middlewares = [thunk];
const mockStore = configureMockStore(middlewares);

describe('<{{ properCase name }} />', () => {
  it('should render with default props', () => {
    const store = mockStore({ {{ camelCase name }} });
    const wrapper = shallow(
      <{{ properCase name }}Container store={store} />
    );
    expect(shallowToJson(wrapper)).toMatchSnapshot();
  });
});
