mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 15:31:11 +00:00
test: remove redundant postback displayText passthrough case
This commit is contained in:
@@ -35,14 +35,6 @@ describe("uriAction", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("postbackAction", () => {
|
describe("postbackAction", () => {
|
||||||
it("includes displayText when provided", () => {
|
|
||||||
const action = postbackAction("Select", "data", "Selected!");
|
|
||||||
|
|
||||||
expect(action.label).toBe("Select");
|
|
||||||
expect((action as { data: string }).data).toBe("data");
|
|
||||||
expect((action as { displayText: string }).displayText).toBe("Selected!");
|
|
||||||
});
|
|
||||||
|
|
||||||
it("truncates data to 300 characters", () => {
|
it("truncates data to 300 characters", () => {
|
||||||
const longData = "x".repeat(400);
|
const longData = "x".repeat(400);
|
||||||
const action = postbackAction("Test", longData);
|
const action = postbackAction("Test", longData);
|
||||||
|
|||||||
Reference in New Issue
Block a user