diff --git a/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js b/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js index 26694f0298804..58314a7cb3f9f 100644 --- a/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js +++ b/src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js @@ -812,7 +812,7 @@ describe('ReactCompositeComponent', function() { render: function() { var output = ; - if (!this.state.flag) { + if (this.state.flag) { output = Child; } return output; @@ -832,7 +832,8 @@ describe('ReactCompositeComponent', function() { }); parentInstance = ReactTestUtils.renderIntoDocument(); - expect(childInstance).toBeNull(); + expect(childInstance).not.toBeNull(); + reactComponentExpect(childInstance).scalarContextEqual({foo: 'bar', depth: 0}); expect(parentInstance.state.flag).toBe(false); ReactUpdates.batchedUpdates(function() { @@ -842,7 +843,7 @@ describe('ReactCompositeComponent', function() { expect(console.error.argsForCall.length).toBe(0); - reactComponentExpect(childInstance).scalarContextEqual({foo: 'bar', depth: 0}); + }); it('unmasked context propagates through updates', function() {