mirror of https://github.com/openclaw/openclaw.git
test: remove redundant yes-no label passthrough case
This commit is contained in:
parent
c01e97f124
commit
993a5e63a1
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in New Issue