Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Jest snapshots #19414

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Libraries/Animated/src/__tests__/AnimatedNative-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Native Animated', () => {
// via component refs table that we override here.
c.refs = {
node: {
setNativeProps: jest.genMockFunction(),
setNativeProps: jest.fn(),
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,15 @@

exports[`TouchableHighlight renders correctly 1`] = `
<View
accessibilityComponentType={undefined}
accessibilityLabel={undefined}
accessibilityTraits={undefined}
accessible={true}
hasTVPreferredFocus={undefined}
hitSlop={undefined}
isTVSelectable={true}
nativeID={undefined}
onLayout={undefined}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={Object {}}
testID={undefined}
tvParallaxProperties={undefined}
>
<Text
style={null}
Expand Down
9 changes: 0 additions & 9 deletions Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
getItemLayout={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
numColumns={2}
Expand All @@ -46,7 +45,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
refreshControl={
<RefreshControlMock
onRefresh={[MockFunction]}
progressViewOffset={undefined}
refreshing={false}
/>
}
Expand All @@ -67,7 +65,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
<header />
</View>
<View
onLayout={undefined}
style={null}
>
<View
Expand All @@ -90,7 +87,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={null}
>
<View
Expand All @@ -113,7 +109,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={null}
>
<View
Expand Down Expand Up @@ -149,7 +144,6 @@ exports[`FlatList renders empty list 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
numColumns={1}
Expand All @@ -173,13 +167,11 @@ exports[`FlatList renders empty list 1`] = `

exports[`FlatList renders null list 1`] = `
<RCTScrollView
data={undefined}
disableVirtualization={false}
getItem={[Function]}
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
numColumns={1}
Expand Down Expand Up @@ -221,7 +213,6 @@ exports[`FlatList renders simple list 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
numColumns={1}
Expand Down
16 changes: 0 additions & 16 deletions Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

exports[`SectionList rendering empty section headers is fine 1`] = `
<RCTScrollView
ItemSeparatorComponent={undefined}
data={
Array [
Object {
Expand All @@ -23,7 +22,6 @@ exports[`SectionList rendering empty section headers is fine 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand All @@ -33,7 +31,6 @@ exports[`SectionList rendering empty section headers is fine 1`] = `
onScroll={[Function]}
onScrollBeginDrag={[Function]}
onScrollEndDrag={[Function]}
onViewableItemsChanged={undefined}
renderItem={[Function]}
renderSectionHeader={[Function]}
scrollEventThrottle={50}
Expand Down Expand Up @@ -92,7 +89,6 @@ exports[`SectionList rendering empty section headers is fine 1`] = `

exports[`SectionList renders a footer when there is no data 1`] = `
<RCTScrollView
ItemSeparatorComponent={undefined}
data={
Array [
Object {
Expand All @@ -106,7 +102,6 @@ exports[`SectionList renders a footer when there is no data 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand All @@ -116,7 +111,6 @@ exports[`SectionList renders a footer when there is no data 1`] = `
onScroll={[Function]}
onScrollBeginDrag={[Function]}
onScrollEndDrag={[Function]}
onViewableItemsChanged={undefined}
renderItem={[Function]}
renderSectionFooter={[Function]}
renderSectionHeader={[Function]}
Expand Down Expand Up @@ -161,7 +155,6 @@ exports[`SectionList renders a footer when there is no data 1`] = `

exports[`SectionList renders a footer when there is no data and no header 1`] = `
<RCTScrollView
ItemSeparatorComponent={undefined}
data={
Array [
Object {
Expand All @@ -175,7 +168,6 @@ exports[`SectionList renders a footer when there is no data and no header 1`] =
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand All @@ -185,7 +177,6 @@ exports[`SectionList renders a footer when there is no data and no header 1`] =
onScroll={[Function]}
onScrollBeginDrag={[Function]}
onScrollEndDrag={[Function]}
onViewableItemsChanged={undefined}
renderItem={[Function]}
renderSectionFooter={[Function]}
scrollEventThrottle={50}
Expand Down Expand Up @@ -225,7 +216,6 @@ exports[`SectionList renders a footer when there is no data and no header 1`] =

exports[`SectionList renders all the bells and whistles 1`] = `
<RCTScrollView
ItemSeparatorComponent={undefined}
ListEmptyComponent={[Function]}
ListFooterComponent={[Function]}
ListHeaderComponent={[Function]}
Expand Down Expand Up @@ -275,7 +265,6 @@ exports[`SectionList renders all the bells and whistles 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={Infinity}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand All @@ -286,11 +275,9 @@ exports[`SectionList renders all the bells and whistles 1`] = `
onScroll={[Function]}
onScrollBeginDrag={[Function]}
onScrollEndDrag={[Function]}
onViewableItemsChanged={undefined}
refreshControl={
<RefreshControlMock
onRefresh={[MockFunction]}
progressViewOffset={undefined}
refreshing={false}
/>
}
Expand Down Expand Up @@ -509,14 +496,12 @@ exports[`SectionList renders all the bells and whistles 1`] = `

exports[`SectionList renders empty list 1`] = `
<RCTScrollView
ItemSeparatorComponent={undefined}
data={Array []}
disableVirtualization={false}
getItem={[Function]}
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand All @@ -526,7 +511,6 @@ exports[`SectionList renders empty list 1`] = `
onScroll={[Function]}
onScrollBeginDrag={[Function]}
onScrollEndDrag={[Function]}
onViewableItemsChanged={undefined}
renderItem={[Function]}
scrollEventThrottle={50}
sections={Array []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`VirtualizedList handles nested lists 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -54,7 +53,6 @@ exports[`VirtualizedList handles nested lists 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -108,7 +106,6 @@ exports[`VirtualizedList handles nested lists 1`] = `
getItemCount={[Function]}
horizontal={true}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -183,7 +180,6 @@ exports[`VirtualizedList handles separators correctly 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -265,7 +261,6 @@ exports[`VirtualizedList handles separators correctly 2`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -347,7 +342,6 @@ exports[`VirtualizedList handles separators correctly 3`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -455,7 +449,6 @@ exports[`VirtualizedList renders all the bells and whistles 1`] = `
refreshControl={
<RefreshControlMock
onRefresh={[MockFunction]}
progressViewOffset={undefined}
refreshing={false}
/>
}
Expand Down Expand Up @@ -495,7 +488,6 @@ exports[`VirtualizedList renders all the bells and whistles 1`] = `
<header />
</View>
<View
onLayout={undefined}
style={
Array [
Object {
Expand All @@ -517,7 +509,6 @@ exports[`VirtualizedList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={
Array [
Object {
Expand All @@ -539,7 +530,6 @@ exports[`VirtualizedList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={
Array [
Object {
Expand All @@ -561,7 +551,6 @@ exports[`VirtualizedList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={
Array [
Object {
Expand All @@ -583,7 +572,6 @@ exports[`VirtualizedList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={
Array [
Object {
Expand Down Expand Up @@ -629,7 +617,6 @@ exports[`VirtualizedList renders empty list 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -660,7 +647,6 @@ exports[`VirtualizedList renders empty list with empty component 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -709,7 +695,6 @@ exports[`VirtualizedList renders list with empty component 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -740,13 +725,11 @@ exports[`VirtualizedList renders list with empty component 1`] = `

exports[`VirtualizedList renders null list 1`] = `
<RCTScrollView
data={undefined}
disableVirtualization={false}
getItem={[Function]}
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -786,7 +769,6 @@ exports[`VirtualizedList renders simple list 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down Expand Up @@ -845,7 +827,6 @@ exports[`VirtualizedList test getItem functionality where data is not an Array 1
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
onContentSizeChange={[Function]}
Expand Down