test: require provider rollback fixtures · openclaw/openclaw@f972d9e
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -94,8 +94,12 @@ describe("gradium speech provider", () => {
|
94 | 94 | const audioData = Buffer.from("ulaw-audio-data"); |
95 | 95 | const fetchMock = vi.fn().mockResolvedValue(new Response(audioData, { status: 200 })); |
96 | 96 | vi.stubGlobal("fetch", fetchMock); |
| 97 | +const synthesizeTelephony = provider.synthesizeTelephony; |
| 98 | +if (!synthesizeTelephony) { |
| 99 | +throw new Error("Expected Gradium provider synthesizeTelephony"); |
| 100 | +} |
97 | 101 | |
98 | | -const result = await provider.synthesizeTelephony!({ |
| 102 | +const result = await synthesizeTelephony({ |
99 | 103 | text: "Telephony test", |
100 | 104 | cfg: {} as never, |
101 | 105 | providerConfig: { apiKey: "gsk_test123", voiceId: "default-voice" }, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。