test: tighten feishu streaming card assertions

This commit is contained in:
Shakker
2026-05-11 08:11:24 +01:00
parent 138aa763ce
commit 86a67b4b15

View File

@@ -111,8 +111,10 @@ describe("FeishuStreamingSession", () => {
await vi.advanceTimersByTimeAsync(160);
expect(updateBodies).toHaveLength(1);
expect(JSON.parse(updateBodies[0] ?? "{}")).toMatchObject({
expect(JSON.parse(updateBodies[0] ?? "{}")).toEqual({
content: "hello small",
sequence: 2,
uuid: "s_card_1_2",
});
});
@@ -140,8 +142,10 @@ describe("FeishuStreamingSession", () => {
await session.update("hello!");
expect(updateBodies).toHaveLength(1);
expect(JSON.parse(updateBodies[0] ?? "{}")).toMatchObject({
expect(JSON.parse(updateBodies[0] ?? "{}")).toEqual({
content: "hello!",
sequence: 2,
uuid: "s_card_2_2",
});
});
});