test: dedupe acp command mock reads · openclaw/openclaw@a7b9bce
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1144,7 +1144,7 @@ describe("/acp command", () => {
|
1144 | 1144 | expectBoundIntroTextToExclude("session ids: pending (available after the first reply)"); |
1145 | 1145 | expectGatewayMethodNotCalled("sessions.patch"); |
1146 | 1146 | expect(hoisted.upsertAcpSessionMetaMock).toHaveBeenCalledTimes(1); |
1147 | | -const upsertArgs = hoisted.upsertAcpSessionMetaMock.mock.calls.at(0)?.[0] as |
| 1147 | +const upsertArgs = mockCallArg(hoisted.upsertAcpSessionMetaMock) as |
1148 | 1148 | | { |
1149 | 1149 | sessionKey: string; |
1150 | 1150 | mutate: ( |
@@ -1632,7 +1632,7 @@ describe("/acp command", () => {
|
1632 | 1632 | reason: "manual", |
1633 | 1633 | }); |
1634 | 1634 | expect(hoisted.upsertAcpSessionMetaMock).toHaveBeenCalledTimes(1); |
1635 | | -const clearMetaArgs = hoisted.upsertAcpSessionMetaMock.mock.calls.at(0)?.[0] as |
| 1635 | +const clearMetaArgs = mockCallArg(hoisted.upsertAcpSessionMetaMock) as |
1636 | 1636 | | { |
1637 | 1637 | sessionKey: string; |
1638 | 1638 | mutate: (current: unknown, entry: { sessionId: string; updatedAt: number }) => unknown; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。