test: guard node event mock call

This commit is contained in:
Peter Steinberger
2026-05-12 02:54:51 +01:00
parent bdb5bd0ffb
commit cc5cdf8f1d

View File

@@ -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");
}