mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe feishu docx mock reads
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user