mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
11 lines
317 B
TypeScript
11 lines
317 B
TypeScript
import { assertEquals } from '@std/assert';
|
|
|
|
import { ffmpegDim } from './analyze.ts';
|
|
|
|
Deno.test('ffmpegDim', async () => {
|
|
await using file = await Deno.open(new URL('./buckbunny.mp4', import.meta.url));
|
|
|
|
const result = await ffmpegDim(file.readable);
|
|
|
|
assertEquals(result, { width: 1280, height: 720 });
|
|
});
|