fix: Stop the live media frame collapsing while a stream loads (#2671)

- Closes: #2574
This commit is contained in:
Dermot Duffy
2026-08-09 21:17:06 -07:00
committed by GitHub
parent 45f88a86a4
commit 98a0084e7a
8 changed files with 277 additions and 47 deletions
+6
View File
@@ -440,6 +440,12 @@ describe('aspectRatioToStyle', () => {
it('invalid ratio', () => {
expect(aspectRatioToStyle({ ratio: [4] })).toEqual({ 'aspect-ratio': 'auto' });
});
it.each([[[0, 0]], [[-4, 3]], [[Infinity, 3]]])(
'should ignore a ratio with a side that describes no shape: %s',
(ratio: number[]) => {
expect(aspectRatioToStyle({ ratio })).toEqual({ 'aspect-ratio': 'auto' });
},
);
});
describe('desparsifyArrays', () => {