🎥 Make videos programmatically with React
mix in some video elements for variety
Jonny Burger7f2c767aff4e
diff --git a/packages/core/src/test/audio.test.tsx b/packages/core/src/test/start-at.tsxsimilarity index 88%rename from packages/core/src/test/audio.test.tsxrename to packages/core/src/test/start-at.tsxindex ad441dcea0..bd9f3f567a 100644--- a/packages/core/src/test/audio.test.tsx+++ b/packages/core/src/test/start-at.tsx@@ -1,6 +1,7 @@import {render} from '@testing-library/react';import React from 'react';import {Audio} from '../audio';+import {Video} from '../video/Video';import {expectToThrow} from './expect-to-throw';test('It should throw if startAt prop is negative', () => {@@ -19,7 +20,7 @@ test('It should throw if endAt prop is negative', () => {test('It should throw if endAt is less than startAt', () => {expectToThrow(- () => render(<Audio startAt={10} endAt={1} />),+ () => render(<Video startAt={10} endAt={1} />),/endAt prop must be greater than startAt prop/);});@@ -35,7 +36,7 @@ test('It should throw if endAt is not a number', () => {test('It should throw if startAt is not a number', () => {expectToThrow(//@ts-expect-error- () => render(<Audio startAt={'hey'} />),+ () => render(<Video startAt={'hey'} />),/type of startAt prop must be a number, instead got type string./);});@@ -53,7 +54,7 @@ test('It should throw if startAt is NaN or Infinity', () => {/startAt prop can not be NaN or Infinity./);expectToThrow(- () => render(<Audio startAt={Infinity} />),+ () => render(<Video startAt={Infinity} />),/startAt prop can not be NaN or Infinity./);});