@samitouri / QOS-React-2 / commits / cc02c22cb4

ensure tags are upperCase before comparing. #4388

Domenico Matteo committed Jul 27, 2015 at 00:32 UTC cc02c22cb4f0d8d057846945b9255fca3909845f
1 file changed +1 -1
src/test/ReactTestUtils.js
+1 -1
@@ -213,7 +213,7 @@ var ReactTestUtils = {
213 scryRenderedDOMComponentsWithTag: function(root, tagName) {
214 return ReactTestUtils.findAllInRenderedTree(root, function(inst) {
215 return ReactTestUtils.isDOMComponent(inst) &&
216 - inst.tagName === tagName.toUpperCase();
216 + inst.tagName.toUpperCase() === tagName.toUpperCase();
217 });
218 },
219