Sha256: 13357cc6cb18ce3cb42b5eccbc9e5723753cab5c5059008741843a2e90474029

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

import TestUtils from 'react-addons-test-utils';

export default function(component, props, ...children) {
  const shallowRenderer = TestUtils.createRenderer();
  shallowRenderer.render(React.createElement(component, props, children.length > 1 ? children : children[0]));
  return shallowRenderer.getRenderOutput();
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-react-0.1.1 js/spec/support/render_component.js
pageflow-react-0.1.0 js/spec/support/render_component.js