Move out "genMockFunction" and "genMockFn" to "fn"

Summary: In the upcoming Jest version `genMockFunction` and `genMockFn` are deprecated, so we need to kill them.

Reviewed By: rafeca

Differential Revision: D8107155

fbshipit-source-id: 4f46ab58e6e34224eb95e9355385da44f005ea94
This commit is contained in:
Miguel Jimenez Esun 2018-05-23 13:21:32 -07:00 committed by Facebook Github Bot
parent 3e0ebc7663
commit 390ded871c
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ describe('Native Animated', () => {
// via component refs table that we override here.
c.refs = {
node: {
setNativeProps: jest.genMockFunction(),
setNativeProps: jest.fn(),
},
};

View File

@ -9,5 +9,5 @@
'use strict';
module.exports.out = () => jest.genMockFn();
module.exports.err = () => jest.genMockFn();
module.exports.out = () => jest.fn();
module.exports.err = () => jest.fn();