test: align media temp path assertions · openclaw/openclaw@87f9d5d
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -819,7 +819,7 @@ describe("applyMediaUnderstanding", () => {
|
819 | 819 | "16000", |
820 | 820 | "-c:a", |
821 | 821 | "pcm_s16le", |
822 | | -expect.stringMatching(/telegram-voice\.wav$/), |
| 822 | +expect.stringMatching(/telegram-voice\.wav.*\.part$/), |
823 | 823 | ]), |
824 | 824 | ); |
825 | 825 | expect(mockedRunExec).toHaveBeenCalledWith( |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -79,7 +79,9 @@ describe("transcodeAudioBufferToOpus", () => {
|
79 | 79 | if (!capturedOutputPath) { |
80 | 80 | throw new Error("missing ffmpeg output path"); |
81 | 81 | } |
82 | | -expect(path.basename(capturedOutputPath)).toBe("escape.opus"); |
| 82 | +const outputBaseName = path.basename(capturedOutputPath); |
| 83 | +expect(outputBaseName).toContain("escape.opus"); |
| 84 | +expect(outputBaseName).toMatch(/\.part$/); |
83 | 85 | await import("node:fs/promises").then((fs) => |
84 | 86 | fs.writeFile(capturedOutputPath!, Buffer.from("opus-output")), |
85 | 87 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。