mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix flow (#7499)
ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement.
(cherry picked from commit 9a48b5ca7b)
This commit is contained in:
committed by
Paul O’Shannessy
parent
814be45aa8
commit
df4356133d
@@ -137,8 +137,8 @@ ReactTestInstance.prototype.toJSON = function() {
|
||||
var ReactTestMount = {
|
||||
|
||||
render: function(
|
||||
nextElement: ReactElement
|
||||
): ?ReactElement<any, any, any> {
|
||||
nextElement: ReactElement<any>
|
||||
): ReactTestInstance {
|
||||
var nextWrappedElement = new ReactElement(
|
||||
TopLevelWrapper,
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user