mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 05:31:23 +00:00
test(core): trim redundant test resets and use mockClear
This commit is contained in:
@@ -30,7 +30,7 @@ describe("subscribeEmbeddedPiSession", () => {
|
||||
const firstPayload = onPartialReply.mock.calls[0][0];
|
||||
expect(firstPayload.text).toBe("Hi there");
|
||||
|
||||
onPartialReply.mockReset();
|
||||
onPartialReply.mockClear();
|
||||
|
||||
emit({ type: "message_start", message: { role: "assistant" } });
|
||||
emitAssistantTextDelta({ emit, delta: "</final>Oops no start" });
|
||||
|
||||
Reference in New Issue
Block a user