mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten senseaudio media file assertion
This commit is contained in:
@@ -78,7 +78,8 @@ describe("transcribeSenseAudioAudio", () => {
|
||||
expect(form.get("language")).toBe("en");
|
||||
expect(form.get("prompt")).toBe("hello");
|
||||
const file = form.get("file") as Blob | { type?: string; name?: string } | null;
|
||||
expect(file).toEqual(expect.objectContaining({ type: "audio/wav" }));
|
||||
expect(file).not.toBeNull();
|
||||
expect(file?.type).toBe("audio/wav");
|
||||
if (file && "name" in file && typeof file.name === "string") {
|
||||
expect(file.name).toBe("voice.wav");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user