🎥 Make videos programmatically with React
fix tests
JonnyBurgerea9244fb601c
diff --git a/packages/core/src/test/wrap-in-schema-helpers.test.ts b/packages/core/src/test/wrap-in-schema-helpers.test.tsindex 90d8034b94..17957c7372 100644--- a/packages/core/src/test/wrap-in-schema-helpers.test.ts+++ b/packages/core/src/test/wrap-in-schema-helpers.test.ts@@ -18,6 +18,7 @@ test('getFlatSchema(sequenceSchema) exposes every variant key', () => {'style.rotate','style.opacity','premountFor',+ 'postmountFor','styleWhilePremounted','styleWhilePostmounted',].sort(),@@ -58,10 +59,16 @@ test('selectActiveKeys exposes style.* keys when layout=absolute-fill', () => {'style.rotate','style.opacity','premountFor',- 'styleWhilePremounted',- 'styleWhilePostmounted',].sort(),);++ const values2 = {+ layout: 'none',+ 'style.scale': 2,+ };+ expect(selectActiveKeys(sequenceSchema, values2).sort()).toEqual(+ ['layout'].sort(),+ );});test('mergeValues writes nested values back into props with dot keys', () => {diff --git a/packages/example/src/AudioSmoothness/SlicedVideo.tsx b/packages/example/src/AudioSmoothness/SlicedVideo.tsxindex b73f7ecd59..bbfb4c2a6c 100644--- a/packages/example/src/AudioSmoothness/SlicedVideo.tsx+++ b/packages/example/src/AudioSmoothness/SlicedVideo.tsx@@ -19,7 +19,7 @@ const SlicedVideo: React.FC = () => {key={i}from={from}durationInFrames={SLICE_DURATION_FRAMES}- premountFor={PREMOUNT_SEC * fps}+ layout={'none'}><Audio src={src} trimBefore={from} /></Sequence>