mirror of https://github.com/openclaw/openclaw.git
test: remove redundant line link menu wrapper test
This commit is contained in:
parent
3bd961f00a
commit
4d1cb661fc
|
|
@ -7,7 +7,6 @@ import {
|
|||
createImageCarousel,
|
||||
createImageCarouselColumn,
|
||||
createYesNoConfirm,
|
||||
createLinkMenu,
|
||||
createProductCarousel,
|
||||
messageAction,
|
||||
uriAction,
|
||||
|
|
@ -227,21 +226,6 @@ describe("createYesNoConfirm", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("createLinkMenu", () => {
|
||||
it("creates a button menu with URL links", () => {
|
||||
const template = createLinkMenu("Links", "Visit our sites", [
|
||||
{ label: "Site 1", url: "https://site1.com" },
|
||||
{ label: "Site 2", url: "https://site2.com" },
|
||||
]);
|
||||
|
||||
expect(template.type).toBe("template");
|
||||
|
||||
const actions = (template.template as { actions: Array<{ type: string }> }).actions;
|
||||
expect(actions[0].type).toBe("uri");
|
||||
expect(actions[1].type).toBe("uri");
|
||||
});
|
||||
});
|
||||
|
||||
describe("createProductCarousel", () => {
|
||||
it("uses URI action when actionUrl provided", () => {
|
||||
const template = createProductCarousel([
|
||||
|
|
|
|||
Loading…
Reference in New Issue