Update invalid render error message

forgot to update the message following the previous diff on rendering null.
This commit is contained in:
Cheng Lou
2014-04-09 17:50:01 -07:00
committed by Paul O’Shannessy
parent 356e85cd6a
commit 5a9d0c6a12
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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.'
);
});