test: tighten audio pin dns request assertion · openclaw/openclaw@31e1d2e
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -37,11 +37,10 @@ describe("transcribeOpenAiCompatibleAudio pinDns", () => {
|
37 | 37 | }); |
38 | 38 | |
39 | 39 | expect(result.text).toBe("ok"); |
40 | | -expect(postTranscriptionRequestMock).toHaveBeenCalledWith( |
41 | | -expect.objectContaining({ |
42 | | -pinDns: false, |
43 | | -body: expect.any(FormData), |
44 | | -}), |
45 | | -); |
| 40 | +const request = postTranscriptionRequestMock.mock.calls[0]?.[0] as |
| 41 | +| { pinDns?: boolean; body?: unknown } |
| 42 | +| undefined; |
| 43 | +expect(request?.pinDns).toBe(false); |
| 44 | +expect(request?.body).toBeInstanceOf(FormData); |
46 | 45 | }); |
47 | 46 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。