Skip to content

Commit

Permalink
Fixing TextInput related jest tests
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D10519823

fbshipit-source-id: 02368b670953a0275fa6495b0c73ef84403598cb
  • Loading branch information
elicwhite authored and facebook-github-bot committed Nov 8, 2018
1 parent ad7d8f8 commit 7e818ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 7e818ae

Please sign in to comment.