mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
test: remove redundant postback displayText passthrough case
This commit is contained in:
@@ -35,14 +35,6 @@ describe("uriAction", () => {
|
||||
});
|
||||
|
||||
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", () => {
|
||||
const longData = "x".repeat(400);
|
||||
const action = postbackAction("Test", longData);
|
||||
|
||||
Reference in New Issue
Block a user