mirror of https://github.com/openclaw/openclaw.git
fix(telegram): type sequentialize test middleware
This commit is contained in:
parent
5e1d61aea4
commit
a49e53c30e
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue