From 4414af977a1d15866a781334ca2a697d5fa0152d Mon Sep 17 00:00:00 2001 From: Brian Mendonca Date: Sat, 21 Feb 2026 15:31:54 -0700 Subject: [PATCH] test: guard inline keyboard fixture against undefined input --- src/telegram/send.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram/send.test.ts b/src/telegram/send.test.ts index 4ac26bb7493..a6a3a064594 100644 --- a/src/telegram/send.test.ts +++ b/src/telegram/send.test.ts @@ -147,7 +147,7 @@ describe("buildInlineKeyboard", () => { }, ]; for (const testCase of cases) { - const input = testCase.input.map((row) => row.map((button) => ({ ...button }))); + const input = testCase.input?.map((row) => row.map((button) => ({ ...button }))); expect(buildInlineKeyboard(input), testCase.name).toEqual(testCase.expected); } });