Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import { videoMimeType } from "./video.ts";
4
5describe("videoMimeType", () => {
6 it("recognizes a saved video with a generic picker MIME type", () => {
7 expect(videoMimeType({ name: "Recording.MOV", mimeType: "application/octet-stream" })).toBe(
8 "video/quicktime",
9 );
10 });
11
12 it("keeps an explicit video MIME type authoritative and removes parameters", () => {
13 expect(videoMimeType({ name: "recording.mp4", mimeType: " VIDEO/WebM; codecs=vp9 " })).toBe(
14 "video/webm",
15 );
16 });
17});