From 54c633db36dfb4abca3e77f0d4e021e7654f8b73 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 06:09:06 +0100 Subject: [PATCH] test: dedupe feishu docx mock reads --- extensions/feishu/src/docx.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/feishu/src/docx.test.ts b/extensions/feishu/src/docx.test.ts index 16fc6520317..baecb6eb0f5 100644 --- a/extensions/feishu/src/docx.test.ts +++ b/extensions/feishu/src/docx.test.ts @@ -233,7 +233,7 @@ describe("feishu_doc image fetch hardening", () => { }); expect(blockDescendantCreateMock).toHaveBeenCalledTimes(1); - const call = blockDescendantCreateMock.mock.calls.at(0)?.[0]; + const call = blockDescendantCreateMock.mock.calls[0]?.[0]; expect(call?.data.children_id).toEqual(["h1", "t1", "h2"]); expect(call?.data.descendants).toEqual(blocks); @@ -272,7 +272,7 @@ describe("feishu_doc image fetch hardening", () => { content: "tree reorder", }); - const call = blockDescendantCreateMock.mock.calls.at(0)?.[0]; + const call = blockDescendantCreateMock.mock.calls[0]?.[0]; expect(call?.data.children_id).toEqual(["h1", "p1", "h2", "list1"]); expect((call?.data.descendants as Array<{ block_id: string }>).map((b) => b.block_id)).toEqual([ "h1",