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:
parent
a322ab61fb
commit
4a226fc1af
|
@ -15,6 +15,7 @@ function reportError(error) {
|
||||||
var ErrorUtils = {
|
var ErrorUtils = {
|
||||||
apply: jest.genMockFunction().mockImplementation(execute),
|
apply: jest.genMockFunction().mockImplementation(execute),
|
||||||
applyWithGuard: jest.genMockFunction().mockImplementation(execute),
|
applyWithGuard: jest.genMockFunction().mockImplementation(execute),
|
||||||
|
guard: jest.genMockFunction().mockImplementation(callback => callback),
|
||||||
inGuard: jest.genMockFunction().mockReturnValue(true),
|
inGuard: jest.genMockFunction().mockReturnValue(true),
|
||||||
reportError: jest.genMockFunction().mockImplementation(reportError),
|
reportError: jest.genMockFunction().mockImplementation(reportError),
|
||||||
setGlobalHandler: jest.genMockFunction(),
|
setGlobalHandler: jest.genMockFunction(),
|
||||||
|
|
Loading…
Reference in New Issue