Fix flow (#7499)
ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement.
Christopher Chedeau committed
Aug 15, 2016 at 10:04 UTC
9a48b5ca7b007c850054fef7a7439f06b3e10f80
1 file changed
+2
-2
src/renderers/testing/ReactTestMount.js
+2
-2
@@ -132,8 +132,8 @@ ReactTestInstance.prototype.toJSON = function() {
132
var ReactTestMount = {
133
134
render: function(
135
- nextElement: ReactElement
136
- ): ?ReactElement<any, any, any> {
135
+ nextElement: ReactElement<any>
136
+ ): ReactTestInstance {
137
var nextWrappedElement = React.createElement(
138
TopLevelWrapper,
139
{ child: nextElement }