fix(test): Add runMessageSent mock to dispatch-from-config test

This commit is contained in:
Johnathon Selstad 2026-01-26 14:44:28 -08:00
parent dd465ce1a6
commit 13c3b3844d

View File

@ -22,6 +22,7 @@ const hookMocks = vi.hoisted(() => ({
runner: {
hasHooks: vi.fn(() => false),
runMessageReceived: vi.fn(async () => {}),
runMessageSent: vi.fn(async () => {}),
},
}));
@ -77,6 +78,7 @@ describe("dispatchReplyFromConfig", () => {
hookMocks.runner.hasHooks.mockReset();
hookMocks.runner.hasHooks.mockReturnValue(false);
hookMocks.runner.runMessageReceived.mockReset();
hookMocks.runner.runMessageSent.mockReset();
});
it("does not route when Provider matches OriginatingChannel (even if Surface is missing)", async () => {
mocks.tryFastAbortFromMessage.mockResolvedValue({