mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 19:21:23 +00:00
test: remove redundant uriAction passthrough case
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user