test: dedupe daemon cli mock read

This commit is contained in:
Peter Steinberger
2026-05-13 10:25:54 +01:00
parent b1db684aca
commit 578d723b48

View File

@@ -256,7 +256,7 @@ describe("daemon-cli coverage", () => {
await runDaemonCommand(["daemon", "status", "--deep"]);
expect(findExtraGatewayServices).toHaveBeenCalledTimes(1);
const discoveryCall = findExtraGatewayServices.mock.calls.at(0);
const discoveryCall = findExtraGatewayServices.mock.calls[0];
if (discoveryCall?.[0] === undefined) {
throw new Error("Expected gateway service discovery params");
}