mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 04:04:32 +00:00
test: remove redundant confirm alt-text passthrough case
This commit is contained in:
@@ -83,17 +83,6 @@ describe("createConfirmTemplate", () => {
|
|||||||
|
|
||||||
expect((template.template as { text: string }).text.length).toBe(240);
|
expect((template.template as { text: string }).text.length).toBe(240);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("uses custom altText when provided", () => {
|
|
||||||
const template = createConfirmTemplate(
|
|
||||||
"Question?",
|
|
||||||
messageAction("Yes"),
|
|
||||||
messageAction("No"),
|
|
||||||
"Custom alt",
|
|
||||||
);
|
|
||||||
|
|
||||||
expect(template.altText).toBe("Custom alt");
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("createButtonTemplate", () => {
|
describe("createButtonTemplate", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user