Merge pull request #4493 from dmatteo/scryRenderedDOMComponents.bug

ensure tags are upperCase before comparing. #4388
This commit is contained in:
Paul O’Shannessy
2015-07-28 18:41:00 -07:00
+1 -1
View File
@@ -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();
});
},