Fix Jest mocks

Summary: Since we started relying on NativeModules' getConstants() method to access constants, we need to update our jest mocks of these NativeModules, so that the tests still pass. I do that in this diff.

Reviewed By: fkgozali

Differential Revision: D13561376

fbshipit-source-id: eaef3de82d842fd97d04be741d55bdded73c6a11
This commit is contained in:
Ramanpreet Nara 2018-12-30 13:28:22 -08:00 committed by Facebook Github Bot
parent 3fae388424
commit 9db0050635
1 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,12 @@ const mockNativeModules = {
BuildInfo: {
appVersion: '0',
buildVersion: '0',
getConstants() {
return {
appVersion: '0',
buildVersion: '0',
};
},
},
Clipboard: {
setString: jest.fn(),