test: remove redundant quick-reply truncation case

This commit is contained in:
Peter Steinberger
2026-02-16 08:00:47 +00:00
parent 8fd6d4d6dd
commit 5cb228fdd0

View File

@@ -8,16 +8,4 @@ describe("createQuickReplyItems", () => {
expect(quickReply.items).toHaveLength(13);
});
it("truncates labels to 20 characters", () => {
const quickReply = createQuickReplyItems([
"This is a very long option label that exceeds the limit",
]);
expect((quickReply.items[0].action as { label: string }).label).toBe("This is a very long ");
// Text is not truncated
expect((quickReply.items[0].action as { text: string }).text).toBe(
"This is a very long option label that exceeds the limit",
);
});
});