Fix doc generation for Geolocation

This commit is contained in:
Spencer Ahrens 2015-04-24 13:14:24 -07:00
parent 5225acea01
commit 8465859411
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,23 @@
// This mock only provides short-circuited methods of applyWithGuard and guard.
// A lot of modules rely on these two functions. This mock relieves their tests
// from depending on the real ErrorUtils module. If you need real error handling
// don't use this mock.
'use strict';
function execute(fun, context, args) {
return fun.apply(context, args);
};
function reportError(error) {
throw error;
}
var ErrorUtils = {
apply: jest.genMockFunction().mockImplementation(execute),
applyWithGuard: jest.genMockFunction().mockImplementation(execute),
inGuard: jest.genMockFunction().mockReturnValue(true),
reportError: jest.genMockFunction().mockImplementation(reportError),
setGlobalHandler: jest.genMockFunction(),
};
module.exports = ErrorUtils;

View File

@ -154,7 +154,7 @@ var styles = [
];
var polyfills = [
'../Libraries/GeoLocation/Geolocation.ios.js',
'../Libraries/GeoLocation/Geolocation.js',
];
var all = components