From 11919c8a97525867bfac29de107b31ee15f5f6cd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 05:40:55 +0100 Subject: [PATCH] test: dedupe launchd handoff mock read --- src/daemon/launchd-restart-handoff.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/launchd-restart-handoff.test.ts b/src/daemon/launchd-restart-handoff.test.ts index 45e18ea971c..61dd5b4a3b1 100644 --- a/src/daemon/launchd-restart-handoff.test.ts +++ b/src/daemon/launchd-restart-handoff.test.ts @@ -16,7 +16,7 @@ import { scheduleDetachedLaunchdRestartHandoff } from "./launchd-restart-handoff type SpawnCall = [string, string[], { env: Record }]; function requireSpawnCall(callIndex = 0): SpawnCall { - const call = spawnMock.mock.calls.at(callIndex); + const call = spawnMock.mock.calls[callIndex]; if (!call) { throw new Error(`expected spawn call ${callIndex}`); }