test: fix rebase-introduced tsgo regressions

This commit is contained in:
Brian Mendonca
2026-02-21 15:56:38 -07:00
committed by Peter Steinberger
parent 1357e02cff
commit 21087c5c70
4 changed files with 1 additions and 5 deletions

View File

@@ -604,7 +604,7 @@ describe("sendMessageTelegram", () => {
...("replyToMessageId" in testCase.options
? { replyToMessageId: testCase.options.replyToMessageId }
: {}),
...("buttons" in testCase.options
...(Array.isArray(testCase.options.buttons)
? {
buttons: testCase.options.buttons.map((row) => row.map((button) => ({ ...button }))),
}