13 lines
598 B
TypeScript
13 lines
598 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { VoiceSubmissions } from "@/collections/voiceover/VoiceSubmissions";
|
|
|
|
describe("VoiceSubmissions upload config", () => {
|
|
// Regression guard: Payload content-sniffs uploads (file-type) and reports
|
|
// browser-recorded WebM takes as `video/webm`, so a MIME allowlist rejects
|
|
// every in-browser recording. The collection must accept any audio format;
|
|
// the submit server action is the audio/* gate instead.
|
|
it("accepts any standard audio format (no MIME allowlist)", () => {
|
|
expect(VoiceSubmissions.upload).toBe(true);
|
|
});
|
|
});
|