mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 08:01:40 +00:00
test: remove low-value typing-without-consumer variant
This commit is contained in:
@@ -345,21 +345,6 @@ describe("runReplyAgent typing (heartbeat)", () => {
|
|||||||
expect(typing.startTypingLoop).toHaveBeenCalled();
|
expect(typing.startTypingLoop).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("signals typing even without consumer partial handler", async () => {
|
|
||||||
state.runEmbeddedPiAgentMock.mockImplementationOnce(async (params: AgentRunParams) => {
|
|
||||||
await params.onPartialReply?.({ text: "hi" });
|
|
||||||
return { payloads: [{ text: "final" }], meta: {} };
|
|
||||||
});
|
|
||||||
|
|
||||||
const { run, typing } = createMinimalRun({
|
|
||||||
typingMode: "message",
|
|
||||||
});
|
|
||||||
await run();
|
|
||||||
|
|
||||||
expect(typing.startTypingOnText).toHaveBeenCalledWith("hi");
|
|
||||||
expect(typing.startTypingLoop).not.toHaveBeenCalled();
|
|
||||||
});
|
|
||||||
|
|
||||||
it("never signals typing for heartbeat runs", async () => {
|
it("never signals typing for heartbeat runs", async () => {
|
||||||
const onPartialReply = vi.fn();
|
const onPartialReply = vi.fn();
|
||||||
state.runEmbeddedPiAgentMock.mockImplementationOnce(async (params: AgentRunParams) => {
|
state.runEmbeddedPiAgentMock.mockImplementationOnce(async (params: AgentRunParams) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user