1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add changes to other aspect ratio comparisons

This commit is contained in:
LJQ 2024-05-23 15:11:08 +08:00
parent adb662eb0b
commit e53c78a8ff
3 changed files with 8 additions and 8 deletions

View file

@ -454,15 +454,15 @@ describe('resolveMixedShapeByAspectRatio', () => {
expect(resolveMixedShapeByAspectRatio(1.34)).toEqual('mixedBackdrop');
});
test('primary aspect ratio is > 0.71', () => {
expect(resolveMixedShapeByAspectRatio(0.72)).toEqual('mixedSquare');
expect(resolveMixedShapeByAspectRatio(0.73)).toEqual('mixedSquare');
test('primary aspect ratio is > 0.8', () => {
expect(resolveMixedShapeByAspectRatio(0.82)).toEqual('mixedSquare');
expect(resolveMixedShapeByAspectRatio(0.83)).toEqual('mixedSquare');
expect(resolveMixedShapeByAspectRatio(1.32)).toEqual('mixedSquare');
});
test('primary aspect ratio is <= 0.71', () => {
expect(resolveMixedShapeByAspectRatio(0.71)).toEqual('mixedPortrait');
expect(resolveMixedShapeByAspectRatio(0.70)).toEqual('mixedPortrait');
test('primary aspect ratio is <= 0.8', () => {
expect(resolveMixedShapeByAspectRatio(0.8)).toEqual('mixedPortrait');
expect(resolveMixedShapeByAspectRatio(0.79)).toEqual('mixedPortrait');
expect(resolveMixedShapeByAspectRatio(0.01)).toEqual('mixedPortrait');
});