mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
ec3327b61a
Summary: `AccessibilityInfo.isScreenReaderEnabled().then()` fails by default in tests because that function is mocked and it doesn't return a promise (the default return value is `undefined`). Returning `Promise.resolve(false)` is a good default in this case so it doesn't break any code relying on it. Changelog: [General] [Fixed] - Fix `AccessibilityInfo.isScreenReaderEnabled` mock in Jest setup Reviewed By: lunaleaps, motiz88 Differential Revision: D19972921 fbshipit-source-id: 3c8498d5aeeac54d1f5cf333ae39658e22c180a1 |
||
---|---|---|
.. | ||
assetFileTransformer.js | ||
mockComponent.js | ||
MockNativeMethods.js | ||
preprocessor.js | ||
renderer.js | ||
setup.js |