diff --git a/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponent-test.js b/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponent-test.js index 14d41cbbea4e..908832736b0b 100644 --- a/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponent-test.js +++ b/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponent-test.js @@ -91,17 +91,17 @@ describe('ReactCompositeComponent', function() { reactComponentExpect(instance) .expectRenderedChild() - .toBeDOMComponentWithTag('a'); + .toBeComponentOfType('a'); instance._toggleActivatedState(); reactComponentExpect(instance) .expectRenderedChild() - .toBeDOMComponentWithTag('b'); + .toBeComponentOfType('b'); instance._toggleActivatedState(); reactComponentExpect(instance) .expectRenderedChild() - .toBeDOMComponentWithTag('a'); + .toBeComponentOfType('a'); }); it('should not thrash a server rendered layout with client side one', () => { @@ -134,7 +134,7 @@ describe('ReactCompositeComponent', function() { ReactTestUtils.Simulate.click(renderedChild); reactComponentExpect(instance) .expectRenderedChild() - .toBeDOMComponentWithTag('b'); + .toBeComponentOfType('b'); }); it('should rewire refs when rendering to different child types', function() { diff --git a/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponentDOMMinimalism-test.js b/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponentDOMMinimalism-test.js index 2c5f0a71a226..f6162895fdad 100644 --- a/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponentDOMMinimalism-test.js +++ b/src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponentDOMMinimalism-test.js @@ -59,7 +59,7 @@ describe('ReactCompositeComponentDOMMinimalism', function() { .expectRenderedChild() .toBeCompositeComponentWithType(LowerLevelComposite) .expectRenderedChild() - .toBeDOMComponentWithTag('div') + .toBeComponentOfType('div') .toBeDOMComponentWithNoChildren(); }; }); @@ -97,10 +97,10 @@ describe('ReactCompositeComponentDOMMinimalism', function() { .expectRenderedChild() .toBeCompositeComponentWithType(LowerLevelComposite) .expectRenderedChild() - .toBeDOMComponentWithTag('div') + .toBeComponentOfType('div') .toBeDOMComponentWithChildCount(1) .expectRenderedChildAt(0) - .toBeDOMComponentWithTag('ul') + .toBeComponentOfType('ul') .toBeDOMComponentWithNoChildren(); }); diff --git a/src/test/reactComponentExpect.js b/src/test/reactComponentExpect.js index d31b0d08aa21..f917ebb78664 100644 --- a/src/test/reactComponentExpect.js +++ b/src/test/reactComponentExpect.js @@ -167,16 +167,6 @@ Object.assign(reactComponentExpectInternal.prototype, { return this; }, - /** - * @deprecated - * @see toBeComponentOfType - */ - toBeDOMComponentWithTag: function(tag) { - this.toBeDOMComponent(); - expect(this.instance().tagName).toBe(tag.toUpperCase()); - return this; - }, - /** * Check that internal state values are equal to a state of expected values. */