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); } });