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' );