🎥 Make videos programmatically with React
more assertions
JonnyBurger1be9fc37cd5e
diff --git a/packages/web-renderer/src/test/input-props.test.tsx b/packages/web-renderer/src/test/input-props.test.tsxindex c7989027dc..a59c998422 100644--- a/packages/web-renderer/src/test/input-props.test.tsx+++ b/packages/web-renderer/src/test/input-props.test.tsx@@ -1,4 +1,4 @@-import {getInputProps} from 'remotion';+import {getInputProps, useVideoConfig} from 'remotion';import {expect, test} from 'vitest';import {renderStillOnWeb} from '../render-still-on-web';@@ -9,6 +9,16 @@ const MustAcceptInputProps: React.FC<{throw new Error('abc is not abc');}+ const {props, defaultProps} = useVideoConfig();++ if (JSON.stringify(defaultProps) !== JSON.stringify({})) {+ throw new Error('Expected defaultProps to be empty');+ }++ if (JSON.stringify(props) !== JSON.stringify({abc: 'abc'})) {+ throw new Error('Expected props to be {abc: "abc"}');+ }+return abc;};