

















@@ -77,7 +77,7 @@ describe("acp cli option collisions", () => {
7777});
78787979expect(runAcpClientInteractive).toHaveBeenCalledTimes(1);
80-const clientOptions = runAcpClientInteractive.mock.calls[0]?.[0] as
80+const clientOptions = runAcpClientInteractive.mock.calls.at(0)?.[0] as
8181| { verbose?: boolean }
8282| undefined;
8383expect(clientOptions?.verbose).toBe(true);
@@ -99,7 +99,7 @@ describe("acp cli option collisions", () => {
9999);
100100101101expect(serveAcpGateway).toHaveBeenCalledTimes(1);
102-const gatewayOptions = serveAcpGateway.mock.calls[0]?.[0] as
102+const gatewayOptions = serveAcpGateway.mock.calls.at(0)?.[0] as
103103| { gatewayPassword?: string; gatewayToken?: string }
104104| undefined;
105105expect(gatewayOptions?.gatewayToken).toBe("tok_file");
@@ -150,7 +150,7 @@ describe("acp cli option collisions", () => {
150150});
151151152152expect(serveAcpGateway).toHaveBeenCalledTimes(1);
153-const gatewayOptions = serveAcpGateway.mock.calls[0]?.[0] as
153+const gatewayOptions = serveAcpGateway.mock.calls.at(0)?.[0] as
154154| { gatewayToken?: string }
155155| undefined;
156156expect(gatewayOptions?.gatewayToken).toBe("tok_file");
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。