From c5d6b36dc90ba260fc7a5e2b527cbe07a9cc11c7 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sat, 13 Aug 2022 02:21:02 -0400 Subject: [PATCH] Updated test for plural video --- test/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.test.ts b/test/index.test.ts index 0cc54c5..4c89cd7 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -114,7 +114,7 @@ test('API fetch video Tweet', async () => { expect(tweet.lang).toEqual('en'); expect(tweet.replying_to).toBeNull(); expect(tweet.media?.video).toBeTruthy(); - const video = tweet.media?.video as APIVideo; + const video = tweet.media?.videos?.[0] as APIVideo; expect(video.url).toEqual( 'https://video.twimg.com/amplify_video/854415175776059393/vid/720x720/dNEi0crU-jA4mTtr.mp4' );