@@ -11,7 +11,7 @@ describe('Tweets endpoints for v2 API', () => {
1111 client = await getAppClient ( ) ;
1212 } ) ;
1313
14- it ( '.get - Get 2 tweets using raw HTTP method & specific endpoint' , async ( ) => {
14+ it . skip ( '.get - Get 2 tweets using raw HTTP method & specific endpoint' , async ( ) => {
1515 // Using raw HTTP method and URL
1616 const response1 = await client . get ( 'https://api.twitter.com/2/tweets?ids=20,1306166445135605761&expansions=author_id&tweet.fields=public_metrics&user.fields=name,public_metrics' ) ;
1717 // Using query parser
@@ -37,7 +37,7 @@ describe('Tweets endpoints for v2 API', () => {
3737
3838 } ) . timeout ( 60 * 1000 ) ;
3939
40- it ( '.search - Search and fetch tweets using tweet searcher and consume 200 tweets' , async ( ) => {
40+ it . skip ( '.search - Search and fetch tweets using tweet searcher and consume 200 tweets' , async ( ) => {
4141 // Using string for query
4242 const response1 = await client . v2 . search ( 'nodeJS' ) ;
4343 // Using object with query key
@@ -67,7 +67,7 @@ describe('Tweets endpoints for v2 API', () => {
6767 }
6868 } ) . timeout ( 60 * 1000 ) ;
6969
70- it ( '.userTimeline/.userMentionTimeline - Fetch user & mention timeline and consume 150 tweets' , async ( ) => {
70+ it . skip ( '.userTimeline/.userMentionTimeline - Fetch user & mention timeline and consume 150 tweets' , async ( ) => {
7171 const jackTimeline = await client . v2 . userTimeline ( '12' ) ;
7272
7373 const originalLength = jackTimeline . tweets . length ;
@@ -104,17 +104,17 @@ describe('Tweets endpoints for v2 API', () => {
104104 expect ( jackMentions . tweets . map ( tweet => tweet . author_id ) ) . to . not . include ( '12' ) ;
105105 } ) . timeout ( 60 * 1000 ) ;
106106
107- it ( '.singleTweet - Download a single tweet' , async ( ) => {
107+ it . skip ( '.singleTweet - Download a single tweet' , async ( ) => {
108108 const tweet = await client . v2 . singleTweet ( '20' ) ;
109109 expect ( tweet . data . text ) . to . equal ( 'just setting up my twttr' ) ;
110110 } ) . timeout ( 60 * 1000 ) ;
111111
112- it ( '.tweetWithMedia - Get a tweet with media variants' , async ( ) => {
112+ it . skip ( '.tweetWithMedia - Get a tweet with media variants' , async ( ) => {
113113 const tweet = await client . v2 . singleTweet ( '870042717589340160' , { 'tweet.fields' : [ 'attachments' ] , 'expansions' : [ 'attachments.media_keys' ] , 'media.fields' : [ 'variants' ] } ) ;
114114 expect ( tweet . includes && tweet . includes . media && tweet . includes . media [ 0 ] . variants && tweet . includes . media [ 0 ] . variants [ 0 ] . content_type ) . to . equal ( 'video/mp4' ) ;
115115 } ) . timeout ( 60 * 1000 ) ;
116116
117- it ( '.tweets - Fetch a bunch of tweets' , async ( ) => {
117+ it . skip ( '.tweets - Fetch a bunch of tweets' , async ( ) => {
118118 const tweets = await client . v2 . tweets ( [ '20' , '1257577057862610951' ] , {
119119 'tweet.fields' : [ 'author_id' ] ,
120120 } ) ;
@@ -124,7 +124,7 @@ describe('Tweets endpoints for v2 API', () => {
124124 expect ( first . author_id ) . to . be . a ( 'string' ) ;
125125 } ) . timeout ( 60 * 1000 ) ;
126126
127- it ( '.like/.unlike - Like / unlike a single tweet' , async ( ) => {
127+ it . skip ( '.like/.unlike - Like / unlike a single tweet' , async ( ) => {
128128 const me = await userClient . currentUser ( ) ;
129129 const { data : { liked } } = await userClient . v2 . like ( me . id_str , '20' ) ;
130130 expect ( liked ) . to . equal ( true ) ;
@@ -135,14 +135,14 @@ describe('Tweets endpoints for v2 API', () => {
135135 expect ( likedAfterUnlike ) . to . equal ( false ) ;
136136 } ) . timeout ( 60 * 1000 ) ;
137137
138- it ( '.tweetLikedBy - Get users that liked a tweet' , async ( ) => {
138+ it . skip ( '.tweetLikedBy - Get users that liked a tweet' , async ( ) => {
139139 const usersThatLiked = await userClient . v2 . tweetLikedBy ( '20' , { 'user.fields' : [ 'created_at' ] } ) ;
140140 expect ( usersThatLiked . data ) . to . have . length . greaterThan ( 0 ) ;
141141
142142 expect ( usersThatLiked . data [ 0 ] . created_at ) . to . be . a ( 'string' ) ;
143143 } ) . timeout ( 60 * 1000 ) ;
144144
145- it ( '.tweetRetweetedBy - Get users that retweeted a tweet' , async ( ) => {
145+ it . skip ( '.tweetRetweetedBy - Get users that retweeted a tweet' , async ( ) => {
146146 const usersThatRt = await userClient . v2 . tweetRetweetedBy ( '20' , { 'user.fields' : [ 'created_at' ] } ) ;
147147 expect ( usersThatRt . data ) . to . have . length . greaterThan ( 0 ) ;
148148
0 commit comments