Remove test utils

old
Javi Velasco 2015-09-05 21:34:49 +02:00
parent f5d1651b02
commit fe1aecdc3a
1 changed files with 0 additions and 13 deletions

View File

@ -1,13 +0,0 @@
TestUtils = React.addons.TestUtils
module.exports =
renderComponent: (Component, props={}, state={}) ->
component = TestUtils.renderIntoDocument(<Component {...props}/>)
component.setState(state) unless state == {}
component
shallowRenderComponent: (component, props, children...) ->
shallowRenderer = TestUtils.createRenderer()
shallowRenderer.render(React.createElement(component, props,
children.length > 1 ? children : children[0]))
shallowRenderer.getRenderOutput()