mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:34:31 +00:00
test: fix readonly typing regressions in check baseline
This commit is contained in:
committed by
Peter Steinberger
parent
0e1aa77928
commit
c7c047287e
@@ -595,13 +595,18 @@ describe("sendMessageTelegram", () => {
|
||||
fileName: "video.mp4",
|
||||
});
|
||||
|
||||
await sendMessageTelegram(chatId, testCase.text, {
|
||||
const opts = {
|
||||
token: "tok",
|
||||
api,
|
||||
mediaUrl: "https://example.com/video.mp4",
|
||||
asVideoNote: true,
|
||||
...testCase.options,
|
||||
});
|
||||
};
|
||||
if (opts.buttons) {
|
||||
opts.buttons = opts.buttons.map((row) => [...row]);
|
||||
}
|
||||
|
||||
await sendMessageTelegram(chatId, testCase.text, opts);
|
||||
|
||||
expect(sendVideoNote).toHaveBeenCalledWith(
|
||||
chatId,
|
||||
|
||||
Reference in New Issue
Block a user