mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 21:24:31 +00:00
test: remove redundant uriAction passthrough case
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
|||||||
createImageCarouselColumn,
|
createImageCarouselColumn,
|
||||||
createProductCarousel,
|
createProductCarousel,
|
||||||
messageAction,
|
messageAction,
|
||||||
uriAction,
|
|
||||||
postbackAction,
|
postbackAction,
|
||||||
} from "./template-messages.js";
|
} 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", () => {
|
describe("postbackAction", () => {
|
||||||
it("truncates data to 300 characters", () => {
|
it("truncates data to 300 characters", () => {
|
||||||
const longData = "x".repeat(400);
|
const longData = "x".repeat(400);
|
||||||
|
|||||||
Reference in New Issue
Block a user