mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
[ReactNative] Move NativeModules mock to OSS
This commit is contained in:
parent
b72acc2313
commit
7de74b129d
@ -0,0 +1,44 @@
|
||||
/**
|
||||
* Copyright 2004-present Facebook. All Rights Reserved.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var NativeModules = {
|
||||
I18n: {
|
||||
translationsDictionary: {
|
||||
'Good bye, {name}!|Bye message': '¡Adiós {name}!',
|
||||
},
|
||||
},
|
||||
Timing: {
|
||||
createTimer: jest.genMockFunction(),
|
||||
deleteTimer: jest.genMockFunction(),
|
||||
},
|
||||
GraphPhotoUpload: {
|
||||
upload: jest.genMockFunction(),
|
||||
},
|
||||
FacebookSDK: {
|
||||
login: jest.genMockFunction(),
|
||||
logout: jest.genMockFunction(),
|
||||
queryGraphPath: jest.genMockFunction().mockImpl(
|
||||
(path, method, params, callback) => callback()
|
||||
),
|
||||
},
|
||||
DataManager: {
|
||||
queryData: jest.genMockFunction(),
|
||||
},
|
||||
UIManager: {
|
||||
customBubblingEventTypes: {},
|
||||
customDirectEventTypes: {},
|
||||
},
|
||||
AsyncLocalStorage: {
|
||||
getItem: jest.genMockFunction(),
|
||||
setItem: jest.genMockFunction(),
|
||||
removeItem: jest.genMockFunction(),
|
||||
clear: jest.genMockFunction(),
|
||||
},
|
||||
SourceCode: {
|
||||
scriptURL: null,
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = NativeModules;
|
Loading…
x
Reference in New Issue
Block a user