mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:48:27 +00:00
test: remove redundant yes-no label passthrough case
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
|||||||
createCarouselColumn,
|
createCarouselColumn,
|
||||||
createImageCarousel,
|
createImageCarousel,
|
||||||
createImageCarouselColumn,
|
createImageCarouselColumn,
|
||||||
createYesNoConfirm,
|
|
||||||
createProductCarousel,
|
createProductCarousel,
|
||||||
messageAction,
|
messageAction,
|
||||||
uriAction,
|
uriAction,
|
||||||
@@ -163,19 +162,6 @@ describe("createImageCarousel", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("createYesNoConfirm", () => {
|
|
||||||
it("allows custom button text", () => {
|
|
||||||
const template = createYesNoConfirm("Delete?", {
|
|
||||||
yesText: "Delete",
|
|
||||||
noText: "Cancel",
|
|
||||||
});
|
|
||||||
|
|
||||||
const actions = (template.template as { actions: Array<{ label: string }> }).actions;
|
|
||||||
expect(actions[0].label).toBe("Delete");
|
|
||||||
expect(actions[1].label).toBe("Cancel");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe("createProductCarousel", () => {
|
describe("createProductCarousel", () => {
|
||||||
it("uses URI action when actionUrl provided", () => {
|
it("uses URI action when actionUrl provided", () => {
|
||||||
const template = createProductCarousel([
|
const template = createProductCarousel([
|
||||||
|
|||||||
Reference in New Issue
Block a user