test: remove duplicate line quick-reply assertions

This commit is contained in:
Peter Steinberger 2026-02-16 07:03:51 +00:00
parent ae6060d777
commit 8ea890e8fb
1 changed files with 0 additions and 15 deletions

View File

@ -52,13 +52,6 @@ describe("createQuickReplyItems", () => {
"This is a very long option label that exceeds the limit",
);
});
it("creates message actions for each item", () => {
const quickReply = createQuickReplyItems(["A", "B"]);
expect((quickReply.items[0].action as { type: string }).type).toBe("message");
expect((quickReply.items[1].action as { type: string }).type).toBe("message");
});
});
describe("createTextMessageWithQuickReplies", () => {
@ -71,14 +64,6 @@ describe("createTextMessageWithQuickReplies", () => {
expect(message.quickReply.items).toHaveLength(2);
});
it("preserves text content", () => {
const longText =
"This is a longer message that asks the user to select from multiple options below.";
const message = createTextMessageWithQuickReplies(longText, ["A", "B", "C"]);
expect(message.text).toBe(longText);
});
it("handles empty quick replies array", () => {
const message = createTextMessageWithQuickReplies("No options", []);