mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
13 lines
391 B
TypeScript
13 lines
391 B
TypeScript
import { assertObjectMatch } from '@std/assert';
|
|
|
|
import { analyzeFile } from './analyze.ts';
|
|
|
|
Deno.test('analyzeFile', async () => {
|
|
const uri = new URL('./buckbunny.mp4', import.meta.url);
|
|
|
|
const { streams } = await analyzeFile(uri);
|
|
|
|
const videoStream = streams.find((stream) => stream.codec_type === 'video')!;
|
|
|
|
assertObjectMatch(videoStream, { width: 1920, height: 1080 });
|
|
});
|