Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Jest-lint errors when presented with legitimate elements in a snapshot #26

Open
colincclark opened this issue Nov 13, 2018 · 0 comments

Comments

@colincclark
Copy link
Contributor

colincclark commented Nov 13, 2018

This returns a TypeError:

exports[`2. an article with a video as the lead asset 1`] = `
<RCTScrollView
  ListHeaderComponent={
    <bound renderHeader
      width={1440}
    />
  }
  initialNumToRender={10}
  maxToRenderPerBatch={10}
  numColumns={1}
   onEndReachedThreshold={2}
   scrollEventThrottle={50}
   updateCellsBatchingPeriod={50}
   windowSize={21}
 >
   <View>
     <View>
       <View>
         <Video
           accountId="5436121857001"
           height={421.875}
           policyKey="1.2.3.4"
           poster={
             Object {
               "uri": "https://video169.io",
             }
           }
           videoId="5831024132001"
           width={750}
         />
       </View>
       <View>
         <View>
           <VideoLabel
             color="#333333"
             title={null}
           />
         </View>
         <Text
           selectable={true}
         >
           Some Headline
         </Text>
       </View>
       <View>
         <View>
           <Text>
             Friday March 13 2015, 6:54pm, The Times
           </Text>
         </View>
       </View>
     </View>
     <View>
       <View>
         <Text
           selectable={true}
         >
           Some content
         </Text>
       </View>
     </View>
     <View />
     <View>
       <ArticleComments
         articleId="198c4b2f-ecec-4f34-be53-c89f83bc1b44"
         url="https://url.io"
       />
     </View>
   </View>
 </RCTScrollView>
 `;

The offending piece of code is:

ListHeaderComponent={
    <bound renderHeader
      width={1440}
    />
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant