test: tighten deepgram media output assertion · openclaw/openclaw@5828959
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -116,7 +116,12 @@ describe("runCapability deepgram provider options", () => {
|
116 | 116 | media, |
117 | 117 | providerRegistry, |
118 | 118 | }); |
119 | | -expect(result.outputs[0]?.text).toBe("ok"); |
| 119 | +expect(result.outputs).toHaveLength(1); |
| 120 | +const [output] = result.outputs; |
| 121 | +if (!output) { |
| 122 | +throw new Error("Expected Deepgram media output"); |
| 123 | +} |
| 124 | +expect(output.text).toBe("ok"); |
120 | 125 | expect(seenBaseUrl).toBe("https://entry.example"); |
121 | 126 | expect(seenHeaders).toMatchObject({ |
122 | 127 | "X-Provider": "1", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。