mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:40:43 +00:00
test: drop duplicate line quick-reply wrapper assertion
This commit is contained in:
@@ -69,12 +69,4 @@ describe("createTextMessageWithQuickReplies", () => {
|
|||||||
|
|
||||||
expect(message.quickReply.items).toHaveLength(0);
|
expect(message.quickReply.items).toHaveLength(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("quick replies use label as both label and text", () => {
|
|
||||||
const message = createTextMessageWithQuickReplies("Pick one:", ["Apple", "Banana"]);
|
|
||||||
|
|
||||||
const firstAction = message.quickReply.items[0].action as { label: string; text: string };
|
|
||||||
expect(firstAction.label).toBe("Apple");
|
|
||||||
expect(firstAction.text).toBe("Apple");
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user