test: guard daemon restart mock call

This commit is contained in:
Peter Steinberger
2026-05-12 05:55:06 +01:00
parent 724e7dba0a
commit 8084cbc345

View File

@@ -55,7 +55,7 @@ function makeGatewayService(
}
function firstCallArg(mock: { mock: { calls: unknown[][] } }): unknown {
const call = mock.mock.calls[0];
const call = mock.mock.calls.at(0);
if (!call) {
throw new Error("Expected first mock call");
}