mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 07:35:48 +00:00
test: guard node event mock call
This commit is contained in:
parent
bdb5bd0ffb
commit
cc5cdf8f1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue