Skip to content

Commit

Permalink
Update Jest snapshots
Browse files Browse the repository at this point in the history
Summary:
Jest will now exclude undefined props from snapshots (jestjs/jest#6162). Updating the snapshots should fix the current `test_javascript` failures.

Circle CI

[INTERNAL][MINOR][Snapshots] - Update snapshots
Closes facebook#19414

Differential Revision: D8125193

Pulled By: hramos

fbshipit-source-id: db8dcfcd8afbf9d6256f83c6e922680a7872d776
  • Loading branch information
hramos authored and macdoum1 committed Jun 28, 2018
1 parent bd179e5 commit 961a4fe
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 53 deletions.
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 @@ -87,7 +84,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={null}
>
<View
Expand All @@ -107,7 +103,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
<separator />
</View>
<View
onLayout={undefined}
style={null}
>
<View
Expand Down Expand Up @@ -140,7 +135,6 @@ exports[`FlatList renders empty list 1`] = `
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
invertStickyHeaders={undefined}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
numColumns={1}
Expand All @@ -164,13 +158,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 @@ -212,7 +204,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

0 comments on commit 961a4fe

Please sign in to comment.