test: dedupe system run mock read

This commit is contained in:
Peter Steinberger
2026-05-13 05:14:13 +01:00
parent 7b86539be2
commit 8748ce9f57
+1 -1
View File
@@ -165,7 +165,7 @@ describe("handleSystemRunInvoke mac app exec host routing", () => {
}
function expectExecDeniedEvent(sendNodeEvent: MockedSendNodeEvent): void {
const call = sendNodeEvent.mock.calls.at(0);
const call = sendNodeEvent.mock.calls[0];
if (!call) {
throw new Error("expected sendNodeEvent call");
}