test: remove redundant uriAction passthrough case

This commit is contained in:
Peter Steinberger
2026-02-16 07:54:37 +00:00
parent 5927c53630
commit 7e1f542233

View File

@@ -8,7 +8,6 @@ import {
createImageCarouselColumn,
createProductCarousel,
messageAction,
uriAction,
postbackAction,
} from "./template-messages.js";
@@ -26,14 +25,6 @@ describe("messageAction", () => {
});
});
describe("uriAction", () => {
it("truncates labels and keeps target URL", () => {
const action = uriAction("This label is definitely too long", "https://example.com");
expect(action.label).toBe("This label is defini");
expect((action as { uri: string }).uri).toBe("https://example.com");
});
});
describe("postbackAction", () => {
it("truncates data to 300 characters", () => {
const longData = "x".repeat(400);