mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
test: remove redundant yes-no label passthrough case
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
createCarouselColumn,
|
||||
createImageCarousel,
|
||||
createImageCarouselColumn,
|
||||
createYesNoConfirm,
|
||||
createProductCarousel,
|
||||
messageAction,
|
||||
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", () => {
|
||||
it("uses URI action when actionUrl provided", () => {
|
||||
const template = createProductCarousel([
|
||||
|
||||
Reference in New Issue
Block a user