Skip to content

🎥 Make videos programmatically with React

Update offthread-extract-url.test.ts

Jonny Burgerc75006d6a543
diff --git a/packages/renderer/src/test/offthread-extract-url.test.ts b/packages/renderer/src/test/offthread-extract-url.test.ts
index d2b3624b80..5c5dc2c3c0 100644
--- a/packages/renderer/src/test/offthread-extract-url.test.ts
+++ b/packages/renderer/src/test/offthread-extract-url.test.ts
@@ -9,5 +9,16 @@ test('Extract URL correctly', () => {
).toEqual({
src: 'http://localhost:3000/public/framermp4withoutfileextension',
time: 1.3,
+ transparent: false,
+ });
+
+ expect(
+ extractUrlAndSourceFromUrl(
+ '/proxy?src=http%3A%2F%2Flocalhost%3A3000%2Fpublic%2Fframermp4withoutfileextension&time=1.3&transparent=true'
+ )
+ ).toEqual({
+ src: 'http://localhost:3000/public/framermp4withoutfileextension',
+ time: 1.3,
+ transparent: true,
});
});