Skip to content

Commit

Permalink
ReactShallowRenderer.render returns itself
Browse files Browse the repository at this point in the history
  • Loading branch information
simonewebdesign committed Nov 6, 2015
1 parent 99fbde5 commit 8fa5cfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ReactTestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ ReactShallowRenderer.prototype.render = function(element, context) {
var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(true);
this._render(element, transaction, context);
ReactUpdates.ReactReconcileTransaction.release(transaction);
return this;
};

ReactShallowRenderer.prototype.unmount = function() {
Expand Down

0 comments on commit 8fa5cfe

Please sign in to comment.