fix(telegram): type sequentialize test middleware

This commit is contained in:
Frank Yang 2026-02-21 21:31:51 -08:00 committed by Ayaan Zaidi
parent 5e1d61aea4
commit a49e53c30e
1 changed files with 5 additions and 3 deletions

View File

@ -448,9 +448,11 @@ describe("createTelegramBot", () => {
it("does not persist update offset past pending updates", async () => {
// For this test we need sequentialize(...) to behave like a normal middleware and call next().
sequentializeSpy.mockImplementationOnce(() => async (_ctx, next) => {
await next();
});
sequentializeSpy.mockImplementationOnce(
() => async (_ctx: unknown, next: () => Promise<void>) => {
await next();
},
);
const onUpdateId = vi.fn();
loadConfig.mockReturnValue({