Skip to content

🎥 Make videos programmatically with React

better test title

Jonny Burger37992978d3c1
diff --git a/packages/player/src/test/index.test.ts b/packages/player/src/test/index.test.ts
index 3861472793..70afd053b9 100644
--- a/packages/player/src/test/index.test.ts
+++ b/packages/player/src/test/index.test.ts
@@ -1,13 +1,7 @@
import {usePlaybackTime} from '../index';
-test('It should throw an error', () => {
+test('It should throw an error if not being used inside a RemotionRoot', () => {
expect(() => {
- const [
- toggle,
- frameBack,
- frameForward,
- onKeyPress,
- isLastFrame,
- ] = usePlaybackTime();
+ usePlaybackTime();
}).toThrow();
});