mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:04:45 +00:00
test: tighten feishu streaming card assertions
This commit is contained in:
@@ -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",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user