Skip to content

Commit c7664c7

Browse files
committed
test: align transcript update payload assertion
1 parent 15e0829 commit c7664c7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/config/sessions/sessions.test.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,19 @@ describe("appendAssistantMessageToSessionTranscript", () => {
450450
});
451451

452452
const sessionFile = resolveSessionTranscriptPathInDir(sessionId, fixture.sessionsDir());
453-
expect(emitSpy).toHaveBeenCalledWith(sessionFile);
453+
expect(emitSpy).toHaveBeenCalledWith(
454+
expect.objectContaining({
455+
sessionFile,
456+
sessionKey,
457+
messageId: expect.any(String),
458+
message: expect.objectContaining({
459+
role: "assistant",
460+
provider: "openclaw",
461+
model: "delivery-mirror",
462+
content: [{ type: "text", text: "Hello from delivery mirror!" }],
463+
}),
464+
}),
465+
);
454466
emitSpy.mockRestore();
455467
});
456468

0 commit comments

Comments
 (0)