@samitouri / QOS-React-2 / commits / 1d071c20e8

Removed unnecessary variables/assertions.

jim committed Nov 19, 2015 at 11:31 UTC 1d071c20e852d49a65283de74e5beea094df5c6e
1 file changed +1 -4
src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js
+1 -4
@@ -143,10 +143,7 @@ describe('ReactCompositeComponent', function() {
143 instance.setProps({renderAnchor: false}); // Clear out the anchor
144 // rerender
145 instance.setProps({renderAnchor: true, anchorClassOn: false});
146 - var anchor = instance.getAnchor();
147 - var actualDOMAnchorNode = ReactDOM.findDOMNode(anchor);
148 - expect(actualDOMAnchorNode.className).toBe('');
149 - expect(actualDOMAnchorNode).toBe(ReactDOM.findDOMNode(anchor));
146 + expect(instance.getAnchor().className).toBe('');
147 });
148
149 it('should auto bind methods and values correctly', function() {