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}`); }