fix: Stop the live media frame collapsing while a stream loads (#2671)
- Closes: #2574
This commit is contained in:
1 parent
45f88a86a4
commit
98a0084e7a
8 files changed
+277
-47
No files matched your search
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user