From abb7618b0f8bd0387450893f886303227e995dc5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 06:37:38 +0000 Subject: [PATCH] test: remove pass-through rich menu action mode checks --- src/line/rich-menu.test.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/line/rich-menu.test.ts b/src/line/rich-menu.test.ts index 96b069f345d..f606f579250 100644 --- a/src/line/rich-menu.test.ts +++ b/src/line/rich-menu.test.ts @@ -39,12 +39,6 @@ describe("uriAction", () => { expect(action.label).toBe("Open"); expect((action as { uri: string }).uri).toBe("https://example.com"); }); - - it("truncates label to 20 characters", () => { - const action = uriAction("Click here to visit our website", "https://example.com"); - - expect(action.label.length).toBe(20); - }); }); describe("postbackAction", () => { @@ -88,18 +82,6 @@ describe("datetimePickerAction", () => { expect((action as { data: string }).data).toBe("date_picked"); }); - it("creates a time picker action", () => { - const action = datetimePickerAction("Pick time", "time_picked", "time"); - - expect((action as { mode: string }).mode).toBe("time"); - }); - - it("creates a datetime picker action", () => { - const action = datetimePickerAction("Pick datetime", "datetime_picked", "datetime"); - - expect((action as { mode: string }).mode).toBe("datetime"); - }); - it("includes initial/min/max when provided", () => { const action = datetimePickerAction("Pick", "data", "date", { initial: "2024-06-15",