test: wait for resolves to finish before assertion

This commit is contained in:
Jörg Krzeslak 2026-08-04 09:52:38 +02:00
parent 46705b6b34
commit 86cf842605
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ test("handleConvert with unsupported format does not throw", async () => {
// Try to convert unsupported format
const jobId = createMockJobId("unsupported-test");
// This should not throw, just log that no converter is available
expect(
await expect(
handleConvert([fileName], uploadsDir, outputDir, "pdf", "xyz123", jobId),
).resolves.toBeUndefined();