Add guard to ErrorUtils mock

Summary:
This method is defined in the implementation but is missing from the mock.

public

Reviewed By: cpojer

Differential Revision: D2875173

fb-gh-sync-id: 6544c34a3d707ff9cecacc0608ab8320b950bfb7
This commit is contained in:
Jan Kassens 2016-01-28 12:07:38 -08:00 committed by facebook-github-bot-5
parent a322ab61fb
commit 4a226fc1af
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function reportError(error) {
var ErrorUtils = {
apply: jest.genMockFunction().mockImplementation(execute),
applyWithGuard: jest.genMockFunction().mockImplementation(execute),
guard: jest.genMockFunction().mockImplementation(callback => callback),
inGuard: jest.genMockFunction().mockReturnValue(true),
reportError: jest.genMockFunction().mockImplementation(reportError),
setGlobalHandler: jest.genMockFunction(),