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

@@ -96,7 +96,6 @@ describe("createCarousel", () => {
const bubbles = Array.from({ length: 15 }, (_, i) => createInfoCard(`Card ${i}`, `Body ${i}`));
const carousel = createCarousel(bubbles);
expect(carousel.type).toBe("carousel");
expect(carousel.contents.length).toBe(12);
});
});

View File

@@ -116,14 +116,6 @@ describe("createDefaultMenuConfig", () => {
}
});
it("has message actions for all areas", () => {
const config = createDefaultMenuConfig();
for (const area of config.areas) {
expect(area.action.type).toBe("message");
}
});
it("has expected default commands", () => {
const config = createDefaultMenuConfig();

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", () => {