mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update invalid render error message
forgot to update the message following the previous diff on rendering null.
This commit is contained in:
committed by
Paul O’Shannessy
parent
356e85cd6a
commit
5a9d0c6a12
@@ -1181,7 +1181,7 @@ var ReactCompositeComponentMixin = {
|
||||
invariant(
|
||||
ReactDescriptor.isValidDescriptor(renderedComponent),
|
||||
'%s.render(): A valid ReactComponent must be returned. You may have ' +
|
||||
'returned an array or some other invalid object.',
|
||||
'returned undefined, an array or some other invalid object.',
|
||||
this.constructor.displayName || 'ReactCompositeComponent'
|
||||
);
|
||||
return renderedComponent;
|
||||
|
||||
@@ -159,8 +159,8 @@ describe('ReactCompositeComponent', function() {
|
||||
ReactTestUtils.renderIntoDocument(<Component />);
|
||||
}).toThrow(
|
||||
'Invariant Violation: Component.render(): A valid ReactComponent must ' +
|
||||
'be returned. You may have returned an array or some other invalid ' +
|
||||
'object.'
|
||||
'be returned. You may have returned undefined, an array or some other ' +
|
||||
'invalid object.'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user