mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 04:54:46 +00:00
test: guard node event mock call
This commit is contained in:
@@ -165,7 +165,7 @@ describe("handleSystemRunInvoke mac app exec host routing", () => {
|
||||
}
|
||||
|
||||
function expectExecDeniedEvent(sendNodeEvent: MockedSendNodeEvent): void {
|
||||
const call = sendNodeEvent.mock.calls[0];
|
||||
const call = sendNodeEvent.mock.calls.at(0);
|
||||
if (!call) {
|
||||
throw new Error("expected sendNodeEvent call");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user