From c802e9ede9d2b1ad2cbd2f795d91efdf7c3f9329 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 2 Nov 2015 18:26:52 -0800 Subject: [PATCH] Test fixups after #4993 --- src/test/__tests__/ReactTestUtils-test.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/__tests__/ReactTestUtils-test.js b/src/test/__tests__/ReactTestUtils-test.js index ee981c409eba9..7adc2118d678e 100644 --- a/src/test/__tests__/ReactTestUtils-test.js +++ b/src/test/__tests__/ReactTestUtils-test.js @@ -88,13 +88,13 @@ describe('ReactTestUtils', function() { }); it('should run all lifecycle methods', function() { - var componentWillMount = mocks.getMockFunction(); - var componentDidMount = mocks.getMockFunction(); - var componentWillReceiveProps = mocks.getMockFunction(); - var shouldComponentUpdate = mocks.getMockFunction(); - var componentWillUpdate = mocks.getMockFunction(); - var componentDidUpdate = mocks.getMockFunction(); - var componentWillUnmount = mocks.getMockFunction(); + var componentWillMount = jest.genMockFn(); + var componentDidMount = jest.genMockFn(); + var componentWillReceiveProps = jest.genMockFn(); + var shouldComponentUpdate = jest.genMockFn(); + var componentWillUpdate = jest.genMockFn(); + var componentDidUpdate = jest.genMockFn(); + var componentWillUnmount = jest.genMockFn(); var SomeComponent = React.createClass({ render: function() {