Skip to content

🎥 Make videos programmatically with React

fix tests

Jonny Burger365963e1b6b9
diff --git a/packages/renderer/src/test/asset-calculation.test.tsx b/packages/renderer/src/test/asset-calculation.test.tsx
index f5c8331090..f6ec98c629 100644
--- a/packages/renderer/src/test/asset-calculation.test.tsx
+++ b/packages/renderer/src/test/asset-calculation.test.tsx
@@ -27,6 +27,7 @@ test('Should be able to collect assets', async () => {
duration: 60,
startInVideo: 0,
trimLeft: 0,
+ volume: 1,
});
});
@@ -45,6 +46,7 @@ test('Should get multiple assets', async () => {
duration: 60,
startInVideo: 0,
trimLeft: 0,
+ volume: 1,
});
expect(assetPositions[1]).toEqual({
type: 'audio',
@@ -53,6 +55,7 @@ test('Should get multiple assets', async () => {
duration: 60,
startInVideo: 0,
trimLeft: 0,
+ volume: 1,
});
});
@@ -75,6 +78,7 @@ test('Should handle jumps inbetween', async () => {
duration: 20,
startInVideo: 0,
trimLeft: 0,
+ volume: 1,
});
expect(assetPositions[1]).toEqual({
type: 'video',
@@ -83,6 +87,7 @@ test('Should handle jumps inbetween', async () => {
duration: 39,
startInVideo: 21,
trimLeft: 21,
+ volume: 1,
});
});
@@ -102,5 +107,6 @@ test('Should support sequencing', async () => {
duration: 10,
startInVideo: 0,
trimLeft: 20,
+ volume: 1,
});
});
diff --git a/packages/renderer/src/test/map-localhost-to-file.test.ts b/packages/renderer/src/test/map-localhost-to-file.test.ts
index 45ce25e598..a96c1eb5ef 100644
--- a/packages/renderer/src/test/map-localhost-to-file.test.ts
+++ b/packages/renderer/src/test/map-localhost-to-file.test.ts
@@ -21,5 +21,6 @@ test('Should correctly map a localhost URL to an asset', async () => {
),
id: '0.8331499681195862',
sequenceFrame: 2045,
+ volume: 1,
});
});
diff --git a/packages/renderer/src/test/split-assets-into-segments.test.tsx b/packages/renderer/src/test/split-assets-into-segments.test.tsx
index f82bfc2a92..a0d0bd2d77 100644
--- a/packages/renderer/src/test/split-assets-into-segments.test.tsx
+++ b/packages/renderer/src/test/split-assets-into-segments.test.tsx
@@ -77,6 +77,7 @@ test('Should leave single clip untouched', () => {
startInVideo: 0,
trimLeft: 0,
type: 'video',
+ volume: 1,
},
]);
});
@@ -108,6 +109,7 @@ test('Should leave two identical clips the same', () => {
startInVideo: 0,
trimLeft: 0,
type: 'video',
+ volume: 1,
},
{
duration: 300,
@@ -115,6 +117,7 @@ test('Should leave two identical clips the same', () => {
startInVideo: 0,
trimLeft: 0,
type: 'video',
+ volume: 1,
},
]);
});