Fixing TextInput related jest tests
Reviewed By: yungsters Differential Revision: D10519823 fbshipit-source-id: 02368b670953a0275fa6495b0c73ef84403598cb
This commit is contained in:
parent
ad7d8f89ef
commit
7e818aed9a
|
@ -585,6 +585,8 @@ const TextInputWithRef = React.forwardRef((props, ref) => (
|
|||
<TextInput {...props} forwardedRef={ref} />
|
||||
));
|
||||
|
||||
TextInputWithRef.displayName = 'TextInput';
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
multilineInput: {
|
||||
// This default top inset makes RCTMultilineTextInputView seem as close as possible
|
||||
|
|
|
@ -37,7 +37,7 @@ jest
|
|||
.mock('InitializeCore', () => {})
|
||||
.mock('Image', () => mockComponent('Image'))
|
||||
.mock('Text', () => mockComponent('Text', MockNativeMethods))
|
||||
.mock('TextInput', () => mockComponent('TextInput'))
|
||||
.mock('TextInput', () => mockComponent('TextInput', MockNativeMethods))
|
||||
.mock('Modal', () => mockComponent('Modal'))
|
||||
.mock('View', () => mockComponent('View', MockNativeMethods))
|
||||
.mock('RefreshControl', () => jest.requireMock('RefreshControlMock'))
|
||||
|
|
Loading…
Reference in New Issue