test: clarify transcript event listener assertions

This commit is contained in:
Peter Steinberger
2026-05-08 12:45:58 +01:00
parent b67bc04c43
commit 390664c5bb

View File

@@ -45,7 +45,7 @@ describe("transcript events", () => {
cleanup.push(onSessionTranscriptUpdate(first));
cleanup.push(onSessionTranscriptUpdate(second));
expect(() => emitSessionTranscriptUpdate("/tmp/session.jsonl")).not.toThrow();
expect(emitSessionTranscriptUpdate("/tmp/session.jsonl")).toBeUndefined();
expect(first).toHaveBeenCalledTimes(1);
expect(second).toHaveBeenCalledTimes(1);
});