test: tighten openai media file assertion · openclaw/openclaw@21f1bc0
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -75,7 +75,8 @@ describe("transcribeOpenAiAudio", () => {
|
75 | 75 | expect(form.get("language")).toBe("en"); |
76 | 76 | expect(form.get("prompt")).toBe("hello"); |
77 | 77 | const file = form.get("file") as Blob | { type?: string; name?: string } | null; |
78 | | -expect(file).toEqual(expect.objectContaining({ type: "audio/wav" })); |
| 78 | +expect(file).not.toBeNull(); |
| 79 | +expect(file?.type).toBe("audio/wav"); |
79 | 80 | if (file && "name" in file && typeof file.name === "string") { |
80 | 81 | expect(file.name).toBe("voice.wav"); |
81 | 82 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。