Skip to content

🎥 Make videos programmatically with React

Revert "fix tests"

Jonny Burger991c9291cb89
diff --git a/packages/renderer/src/test/ffmpeg-filters.test.ts b/packages/renderer/src/test/ffmpeg-filters.test.ts
index ce01e415d7..5a08fa854c 100644
--- a/packages/renderer/src/test/ffmpeg-filters.test.ts
+++ b/packages/renderer/src/test/ffmpeg-filters.test.ts
@@ -21,6 +21,7 @@ test('Should create a basic filter correctly', () => {
fps: 30,
asset,
durationInFrames: 100,
+ channels: 1,
})
).toBe('[0:a]atrim=0.000000:0.666667,apad=whole_dur=3.333333[a0]');
});
@@ -34,6 +35,7 @@ test('Should handle trim correctly', () => {
trimLeft: 10,
},
durationInFrames: 100,
+ channels: 1,
})
).toBe('[0:a]atrim=0.333333:1.000000,apad=whole_dur=3.333333[a0]');
});
@@ -49,10 +51,9 @@ test('Should handle delay correctly', () => {
},
durationInFrames: 100,
+ channels: 1,
})
- ).toBe(
- '[0:a]atrim=0.333333:1.000000,adelay=2667|2667|2667|2667|2667|2667|2667|2667|2667|2667[a0]'
- );
+ ).toBe('[0:a]atrim=0.333333:1.000000,adelay=2667|2667[a0]');
});
test('Should offset multiple channels', () => {
@@ -65,8 +66,7 @@ test('Should offset multiple channels', () => {
startInVideo: 80,
},
durationInFrames: 100,
+ channels: 3,
})
- ).toBe(
- '[0:a]atrim=0.333333:1.000000,adelay=2667|2667|2667|2667|2667|2667|2667|2667|2667|2667[a0]'
- );
+ ).toBe('[0:a]atrim=0.333333:1.000000,adelay=2667|2667|2667|2667[a0]');
});