test: prune redundant line action-type checks

This commit is contained in:
Peter Steinberger
2026-02-16 07:20:57 +00:00
parent 3028a1bd3e
commit 12d6b3b0c9
3 changed files with 0 additions and 20 deletions

View File

@@ -203,17 +203,6 @@ describe("createYesNoConfirm", () => {
expect(actions[0].label).toBe("Delete");
expect(actions[1].label).toBe("Cancel");
});
it("uses postback actions when data provided", () => {
const template = createYesNoConfirm("Confirm?", {
yesData: "action=confirm",
noData: "action=cancel",
});
const actions = (template.template as { actions: Array<{ type: string }> }).actions;
expect(actions[0].type).toBe("postback");
expect(actions[1].type).toBe("postback");
});
});
describe("createProductCarousel", () => {