mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
11 lines
324 B
TypeScript
11 lines
324 B
TypeScript
import { assertEquals } from '@std/assert';
|
|
|
|
import { getVideoDimensions } from './analyze.ts';
|
|
|
|
Deno.test('getVideoDimensions', async () => {
|
|
const uri = new URL('./buckbunny.mp4', import.meta.url);
|
|
|
|
const dimensions = await getVideoDimensions(uri.href);
|
|
|
|
assertEquals(dimensions, { width: 1920, height: 1080 });
|
|
});
|