mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 05:52:45 +00:00
test: remove redundant messageAction passthrough case
This commit is contained in:
@@ -13,13 +13,6 @@ import {
|
|||||||
} from "./template-messages.js";
|
} from "./template-messages.js";
|
||||||
|
|
||||||
describe("messageAction", () => {
|
describe("messageAction", () => {
|
||||||
it("creates a message action", () => {
|
|
||||||
const action = messageAction("Click me", "clicked");
|
|
||||||
|
|
||||||
expect(action.label).toBe("Click me");
|
|
||||||
expect((action as { text: string }).text).toBe("clicked");
|
|
||||||
});
|
|
||||||
|
|
||||||
it("uses label as text when text not provided", () => {
|
it("uses label as text when text not provided", () => {
|
||||||
const action = messageAction("Click");
|
const action = messageAction("Click");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user