mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #4493 from dmatteo/scryRenderedDOMComponents.bug
ensure tags are upperCase before comparing. #4388
This commit is contained in:
@@ -213,7 +213,7 @@ var ReactTestUtils = {
|
||||
scryRenderedDOMComponentsWithTag: function(root, tagName) {
|
||||
return ReactTestUtils.findAllInRenderedTree(root, function(inst) {
|
||||
return ReactTestUtils.isDOMComponent(inst) &&
|
||||
inst.tagName === tagName.toUpperCase();
|
||||
inst.tagName.toUpperCase() === tagName.toUpperCase();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user