diff --git a/apps/desktop/src/components/chat/image-geometry.test.tsx b/apps/desktop/src/components/chat/image-geometry.test.tsx index 9ccc41b489..9792228124 100644 --- a/apps/desktop/src/components/chat/image-geometry.test.tsx +++ b/apps/desktop/src/components/chat/image-geometry.test.tsx @@ -123,7 +123,9 @@ it('keeps the pending generated-image frame when its result arrives', async () = mounted.rerender() expect(parseFloat(frame(mounted.container).style.aspectRatio)).toBeCloseTo(16 / 9) const pendingStyle = frame(mounted.container).style.cssText - mounted.rerender() + mounted.rerender( + + ) // Must hold before the file read settles, not just after img.onload. expect(frame(mounted.container).style.cssText).toBe(pendingStyle) @@ -141,7 +143,9 @@ it('keys inline data sources by a bounded digest so they are remembered', async first.unmount() expect(parseFloat(frame(render().container).style.aspectRatio)).toBe(1.5) - expect(parseFloat(frame(render().container).style.aspectRatio)).not.toBe(1.5) + expect(parseFloat(frame(render().container).style.aspectRatio)).not.toBe( + 1.5 + ) }) it.each(['markdown', 'generated'])('%s dimensions follow owner and source, not stale reads or hints', async kind => {