mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 23:43:35 +00:00
Assert thumbnail readiness waits for decoding
This commit is contained in:
1 parent
cdd64d5fe1
commit
8a01fcdd6e
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user