mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 10:43:03 +00:00
test: guard echo transcript mock call
This commit is contained in:
@@ -113,7 +113,7 @@ function disableImageUnderstanding(cfg: OpenClawConfig): void {
|
||||
|
||||
function expectSingleEchoDeliveryCall() {
|
||||
expect(mockDeliverOutboundPayloads).toHaveBeenCalledOnce();
|
||||
const firstCall = mockDeliverOutboundPayloads.mock.calls[0];
|
||||
const firstCall = mockDeliverOutboundPayloads.mock.calls.at(0);
|
||||
if (!firstCall) {
|
||||
throw new Error("Expected echo transcript delivery call");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user