mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe realtime talk mock read
This commit is contained in:
@@ -297,7 +297,7 @@ describe("GoogleLiveRealtimeTalkTransport", () => {
|
||||
]);
|
||||
expect(onTranscript).toHaveBeenCalledWith({ role: "user", text: "hello", final: true });
|
||||
expect(onTranscript).toHaveBeenCalledWith({ role: "assistant", text: "hi", final: false });
|
||||
const audioEvent = onTalkEvent.mock.calls.at(2)?.[0];
|
||||
const audioEvent = onTalkEvent.mock.calls[2]?.[0];
|
||||
expect(audioEvent?.payload).toStrictEqual({ byteLength: 4, mimeType: "audio/pcm;rate=24000" });
|
||||
expect(audioEvent?.sessionId).toBe("main:google:provider-websocket");
|
||||
expect(audioEvent?.transport).toBe("provider-websocket");
|
||||
|
||||
Reference in New Issue
Block a user