fix(clawsweeper): address review for automerge-openclaw-openclaw-76021 (validation-1)

This commit is contained in:
clawsweeper
2026-05-02 20:32:12 +00:00
parent 2f53db94a8
commit 6e3eb5d869

View File

@@ -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();