mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:24:46 +00:00
test: guard daemon restart mock call
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user