Skip to content

🎥 Make videos programmatically with React

run prettier

Jonny Burger1bf8374f1815
diff --git a/packages/core/src/test/bezier.test.ts b/packages/core/src/test/bezier.test.ts
index 87c71cfbe5..98535a6003 100644
--- a/packages/core/src/test/bezier.test.ts
+++ b/packages/core/src/test/bezier.test.ts
@@ -2,21 +2,25 @@ import {bezier} from '../bezier';
const identity = (x: any) => {
return x;
-}
+};
const assertClose = (a: number, b: number, precision = 3) => {
expect(a).toBeCloseTo(b, precision);
-}
+};
-const allEquals = (be1: (x: number) => number, be2: (x: number) => number, samples: number) => {
+const allEquals = (
+ be1: (x: number) => number,
+ be2: (x: number) => number,
+ samples: number
+) => {
for (let i = 0; i <= samples; ++i) {
const x = i / samples;
assertClose(be1(x), be2(x));
}
-}
+};
function repeat(n: number) {
- return function(f: any) {
+ return function (f: any) {
for (let i = 0; i < n; ++i) {
f();
}
@@ -43,7 +47,7 @@ test('bezier - fail with wrong params', () => {
test('bezier - linear curves', () => {
allEquals(bezier(0, 0, 1, 1), bezier(1, 1, 0, 0), 100);
allEquals(bezier(0, 0, 1, 1), identity, 100);
-})
+});
test('bezier - right value at extremes', () => {
repeat(10)(() => {
@@ -55,4 +59,4 @@ test('bezier - right value at extremes', () => {
expect(easing(0)).toBe(0);
expect(easing(1)).toBe(1);
});
-})
\ No newline at end of file
+});
diff --git a/packages/core/src/use-video-config.ts b/packages/core/src/use-video-config.ts
index 9c1cd39d9d..47bc7094e2 100644
--- a/packages/core/src/use-video-config.ts
+++ b/packages/core/src/use-video-config.ts
@@ -5,7 +5,9 @@ export const useVideoConfig = (): VideoConfig => {
const videoConfig = useUnsafeVideoConfig();
if (!videoConfig) {
- throw new Error('No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.');
+ throw new Error(
+ 'No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.'
+ );
}
return videoConfig;