Skip to content

🎥 Make videos programmatically with React

Update stream-remote.test.ts

Jonny Burger71d5b81599a7
diff --git a/packages/media-parser/src/test/stream-remote.test.ts b/packages/media-parser/src/test/stream-remote.test.ts
index 6bb6826453..edc6e539bc 100644
--- a/packages/media-parser/src/test/stream-remote.test.ts
+++ b/packages/media-parser/src/test/stream-remote.test.ts
@@ -20,25 +20,29 @@ test('Should stream', async () => {
expect(result.videoCodec).toEqual('h264');
});
-test('Should stream from Wikipedia', async () => {
- const result = await parseMedia({
- src: 'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm',
- fields: {
- durationInSeconds: true,
- fps: true,
- dimensions: true,
- videoCodec: true,
- },
- });
- expect(result.durationInSeconds).toBe(634.571);
- // TODO: Not yet implemented
- expect(result.fps).toBe(null);
- expect(result.dimensions).toEqual({
- width: 1280,
- height: 720,
- });
- expect(result.videoCodec).toEqual('vp9');
-});
+test(
+ 'Should stream from Wikipedia',
+ async () => {
+ const result = await parseMedia({
+ src: 'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm',
+ fields: {
+ durationInSeconds: true,
+ fps: true,
+ dimensions: true,
+ videoCodec: true,
+ },
+ });
+ expect(result.durationInSeconds).toBe(634.571);
+ // TODO: Not yet implemented
+ expect(result.fps).toBe(null);
+ expect(result.dimensions).toEqual({
+ width: 1280,
+ height: 720,
+ });
+ expect(result.videoCodec).toEqual('vp9');
+ },
+ {timeout: 10000},
+);
test('Should handle redirect', async () => {
const result = await parseMedia({