style: format ffprobe files to pass CI format check

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
miga-heygen
2026-09-03 05:49:20 +00:00
co-authored by Claude Opus 4.6
parent cf5e504286
commit f9e1a6668d
2 changed files with 2 additions and 9 deletions
+1 -3
View File
@@ -1000,9 +1000,7 @@ describe("analyzeKeyframeIntervals — single-keyframe videos", () => {
});
it("returns non-problematic for zero keyframes (still image)", async () => {
const { spawn } = createSpawnSpy([
{ kind: "exit", code: 0, stdout: "\n" },
]);
const { spawn } = createSpawnSpy([{ kind: "exit", code: 0, stdout: "\n" }]);
vi.resetModules();
vi.doMock("child_process", () => ({ spawn }));
+1 -6
View File
@@ -1102,12 +1102,7 @@ async function probeStreamDurationSeconds(filePath: string): Promise<number> {
// Fall through to format-level probe.
}
try {
const out = await runFfprobe(filePath, [
"-show_entries",
"format=duration",
"-of",
"csv=p=0",
]);
const out = await runFfprobe(filePath, ["-show_entries", "format=duration", "-of", "csv=p=0"]);
const d = parseFloat(out.trim());
return Number.isFinite(d) && d > 0 ? d : 0;
} catch {