test: dedupe feishu docx mock reads · openclaw/openclaw@54c633d
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -233,7 +233,7 @@ describe("feishu_doc image fetch hardening", () => {
|
233 | 233 | }); |
234 | 234 | |
235 | 235 | expect(blockDescendantCreateMock).toHaveBeenCalledTimes(1); |
236 | | -const call = blockDescendantCreateMock.mock.calls.at(0)?.[0]; |
| 236 | +const call = blockDescendantCreateMock.mock.calls[0]?.[0]; |
237 | 237 | expect(call?.data.children_id).toEqual(["h1", "t1", "h2"]); |
238 | 238 | expect(call?.data.descendants).toEqual(blocks); |
239 | 239 | |
@@ -272,7 +272,7 @@ describe("feishu_doc image fetch hardening", () => {
|
272 | 272 | content: "tree reorder", |
273 | 273 | }); |
274 | 274 | |
275 | | -const call = blockDescendantCreateMock.mock.calls.at(0)?.[0]; |
| 275 | +const call = blockDescendantCreateMock.mock.calls[0]?.[0]; |
276 | 276 | expect(call?.data.children_id).toEqual(["h1", "p1", "h2", "list1"]); |
277 | 277 | expect((call?.data.descendants as Array<{ block_id: string }>).map((b) => b.block_id)).toEqual([ |
278 | 278 | "h1", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。