test: fix await-thenable in signal typing test

This commit is contained in:
Peter Steinberger
2026-01-22 02:20:42 +00:00
parent 47ebe29195
commit 302bb64457

View File

@@ -12,7 +12,7 @@ vi.mock("./send.js", () => ({
vi.mock("../auto-reply/reply/dispatch-from-config.js", () => ({
dispatchReplyFromConfig: vi.fn(
async (params: { replyOptions?: { onReplyStart?: () => void } }) => {
await params.replyOptions?.onReplyStart?.();
await Promise.resolve(params.replyOptions?.onReplyStart?.());
return { queuedFinal: false, counts: { tool: 0, block: 0, final: 0 } };
},
),