test: remove redundant yes-no default template case

This commit is contained in:
Peter Steinberger
2026-02-16 07:34:18 +00:00
parent 227e31d791
commit 82a8fc0bc7

View File

@@ -185,14 +185,6 @@ describe("createImageCarousel", () => {
});
describe("createYesNoConfirm", () => {
it("creates a yes/no confirmation with defaults", () => {
const template = createYesNoConfirm("Continue?");
const actions = (template.template as { actions: Array<{ label: string }> }).actions;
expect(actions[0].label).toBe("Yes");
expect(actions[1].label).toBe("No");
});
it("allows custom button text", () => {
const template = createYesNoConfirm("Delete?", {
yesText: "Delete",