InsidersByte/honeymoon-gift-list

View on GitHub
public/containers/Root/index.prod.test.jsx

Summary

Maintainability
A
3 hrs
Test Coverage
import React from 'react';
import { shallow } from 'enzyme';
import Root from './index.prod';
import configureStore from '../../store/configureStore.dev';

describe('Root', () => {
  it('should render correctly', () => {
    const store = configureStore();

    const wrapper = shallow(
      <Root store={store} history={{}}>
        <h1>Hello World</h1>
      </Root>
    );

    expect(wrapper).toMatchSnapshot();
  });
});