We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 320985d commit ddbf8b0Copy full SHA for ddbf8b0
apps/web/__tests__/unit/audio-extract.test.ts
@@ -90,8 +90,9 @@ describe("audio-extract", () => {
90
mockProcess.emit("error", new Error("spawn failed"));
91
}, 10);
92
93
- const result = await resultPromise;
94
- expect(result).toBe(false);
+ await expect(resultPromise).rejects.toThrow(
+ "ffmpeg process error: spawn failed",
95
+ );
96
});
97
98
it("uses correct ffmpeg arguments", async () => {
@@ -104,7 +105,9 @@ describe("audio-extract", () => {
104
105
mockProcess.emit("close", 1);
106
107
- await resultPromise;
108
109
+ "ffmpeg could not read video file: no streams detected",
110
111
112
const args = spawnArgs[0]?.args ?? [];
113
expect(args).toContain("-i");
0 commit comments