mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-24 08:21:39 +00:00
test(telegram): align webhook grammy mock
This commit is contained in:
@@ -73,6 +73,10 @@ vi.mock("grammy", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("grammy")>();
|
||||
return {
|
||||
...actual,
|
||||
API_CONSTANTS: actual.API_CONSTANTS ?? {
|
||||
DEFAULT_UPDATE_TYPES: ["message"],
|
||||
ALL_UPDATE_TYPES: ["message"],
|
||||
},
|
||||
webhookCallback: webhookCallbackSpy,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user