mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 02:20:43 +00:00
test: tighten audio pin dns request assertion
This commit is contained in:
@@ -37,11 +37,10 @@ describe("transcribeOpenAiCompatibleAudio pinDns", () => {
|
||||
});
|
||||
|
||||
expect(result.text).toBe("ok");
|
||||
expect(postTranscriptionRequestMock).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
pinDns: false,
|
||||
body: expect.any(FormData),
|
||||
}),
|
||||
);
|
||||
const request = postTranscriptionRequestMock.mock.calls[0]?.[0] as
|
||||
| { pinDns?: boolean; body?: unknown }
|
||||
| undefined;
|
||||
expect(request?.pinDns).toBe(false);
|
||||
expect(request?.body).toBeInstanceOf(FormData);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user