import React from 'react';
import renderer from 'react-test-renderer';
import {Provider} from 'react-redux';
import {combineReducers} from 'redux';
import {reducers} from '@ciscospark/widget-message';
import {initStore} from '@ciscospark/widget-base';

import ReadReceipts from '.';

describe('ReadReceipts container', () => {
  it('renders properly', () => {
    const store = initStore(combineReducers(reducers));
    const component = renderer.create(
      <Provider store={store}>
        <ReadReceipts />
      </Provider>
    );
    expect(component).toMatchSnapshot();
  });
});

import React from 'react';
import renderer from 'react-test-renderer';
import {reducers} from '@ciscospark/widget-message';
import {withInitialState} from '@ciscospark/spark-widget-base';

import ReadReceipts from '.';

describe('ReadReceipts container', () => {
  it('renders properly', () => {
    const ReadReceiptsComponent = withInitialState({reducers})(ReadReceipts);
    const component = renderer.create(
      <ReadReceiptsComponent />
    );
    expect(component).toMatchSnapshot();
  });
});

Simplify container test