Skip to content

🎥 Make videos programmatically with React

Update stream-local.test.ts

Jonny Burger2b0fb939c683
diff --git a/packages/video-parser/src/test/stream-local.test.ts b/packages/video-parser/src/test/stream-local.test.ts
index 2c5c3955b1..6b76a62df5 100644
--- a/packages/video-parser/src/test/stream-local.test.ts
+++ b/packages/video-parser/src/test/stream-local.test.ts
@@ -20,9 +20,14 @@ test('Should stream ISO base media', async () => {
test('Should stream WebM with no duration', async () => {
const result = await parseMedia(
RenderInternals.exampleVideos.nofps,
- {fps: true, durationInSeconds: true, boxes: true},
+ {fps: true, durationInSeconds: true, dimensions: true},
nodeReader,
);
+ expect(result.durationInSeconds).toBe(6.57);
+ expect(result.dimensions).toEqual({
+ width: 1470,
+ height: 690,
+ });
expect(result.fps).toBeDefined();
});