🎥 Make videos programmatically with React
fix tests
Jonny Burgerb32ed0722eb9
diff --git a/packages/media-parser/src/test/callback-fields.test.ts b/packages/media-parser/src/test/callback-fields.test.tsindex 4f093a9ae2..dfef2c07d7 100644--- a/packages/media-parser/src/test/callback-fields.test.ts+++ b/packages/media-parser/src/test/callback-fields.test.ts@@ -10,7 +10,7 @@ test('should be able to use callback fields only', async () => {src: exampleVideos.transparentWebm,onDurationInSeconds: (durationInSeconds) => {assertions++;- expect(durationInSeconds).toBe(5);+ expect(durationInSeconds).toBe(5.008);},onVideoCodec: (videoCodec) => {assertions++;diff --git a/packages/media-parser/src/test/parse-webm.test.ts b/packages/media-parser/src/test/parse-webm.test.tsindex c7f2227887..c78f25cb8f 100644--- a/packages/media-parser/src/test/parse-webm.test.ts+++ b/packages/media-parser/src/test/parse-webm.test.ts@@ -13,6 +13,6 @@ test('should be able to parse a WebM', async () => {acknowledgeRemotionLicense: true,reader: nodeReader,});- expect(webm.durationInSeconds).toBe(5);+ expect(webm.durationInSeconds).toBe(5.008);expect(webm.videoCodec).toBe('vp8');});