mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:40:44 +00:00
fix(clawsweeper): address review for automerge-openclaw-openclaw-76021 (validation-1)
This commit is contained in:
@@ -102,7 +102,7 @@ describe("OpenClawApp dictation recorder lifecycle", () => {
|
||||
it("does not submit collected audio after a recorder error and later stop", async () => {
|
||||
const app = await createRecordingApp();
|
||||
await app.toggleChatDictation();
|
||||
const recorder = MockMediaRecorder.instances[0]!;
|
||||
const recorder = MockMediaRecorder.instances[0];
|
||||
|
||||
recorder.emitData(new Blob(["audio"], { type: "audio/webm" }));
|
||||
recorder.emitError("microphone failed");
|
||||
@@ -118,7 +118,7 @@ describe("OpenClawApp dictation recorder lifecycle", () => {
|
||||
it("releases recorded chunks after copying them for normal transcription", async () => {
|
||||
const app = await createRecordingApp();
|
||||
await app.toggleChatDictation();
|
||||
const recorder = MockMediaRecorder.instances[0]!;
|
||||
const recorder = MockMediaRecorder.instances[0];
|
||||
recorder.emitData(new Blob(["audio"], { type: "audio/webm" }));
|
||||
|
||||
await app.toggleChatDictation();
|
||||
|
||||
Reference in New Issue
Block a user