test: remove redundant uriAction passthrough case
This commit is contained in:
parent
5927c53630
commit
7e1f542233
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user