test: dedupe feishu chat mock reads · openclaw/openclaw@6af82ef
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -74,7 +74,7 @@ describe("registerFeishuChatTools", () => {
|
74 | 74 | ); |
75 | 75 | |
76 | 76 | expect(registerTool).toHaveBeenCalledTimes(1); |
77 | | -const tool = registerTool.mock.calls.at(0)?.[0]; |
| 77 | +const tool = registerTool.mock.calls[0]?.[0]; |
78 | 78 | expect(tool?.name).toBe("feishu_chat"); |
79 | 79 | |
80 | 80 | chatGetMock.mockResolvedValueOnce({ |
@@ -205,7 +205,7 @@ describe("registerFeishuChatTools", () => {
|
205 | 205 | }), |
206 | 206 | ); |
207 | 207 | |
208 | | -const tool = registerTool.mock.calls.at(0)?.[0]; |
| 208 | +const tool = registerTool.mock.calls[0]?.[0]; |
209 | 209 | contactUserGetMock.mockRejectedValueOnce( |
210 | 210 | Object.assign(new Error("Request failed with status code 400"), { |
211 | 211 | response: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。