Assert thumbnail readiness waits for decoding

This commit is contained in:
webadderall committed 2026-10-03 13:10:53 +10:00
1 parent cdd64d5fe1
commit 8a01fcdd6e
1 file changed
+1
+1
View File
@@ -307,6 +307,7 @@ describe("local media path policy", () => {
expect(entry?.path).toBe(projectPath);
expect(entry?.thumbnailPath).toBeNull();
const task = manager.refreshProjectThumbnail(projectPath, await fs.stat(projectPath));
expect(ready).not.toHaveBeenCalled();
release(Buffer.from("fixture thumbnail"));
await task;
expect(generate).toHaveBeenCalledTimes(1);