dillon1000/react

Commit

Fix ReactTestUtils.mockComponent so that mockTagName is not ignored.

The `mockTagName` parameter was always optional, and so probably was not
used very often. If you tried to use it, it would be shadowed by the
`var mockTagName` declaration in the `render` method, so only
`module.mockTagName` or `"div"` were ever possible values.
Browse files
Changed paths1 file
First-parent comparison
M src/test/ReactTestUtils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…