diff options
Diffstat (limited to 'packages/integrations/image/test/sharp.test.js')
-rw-r--r-- | packages/integrations/image/test/sharp.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/image/test/sharp.test.js b/packages/integrations/image/test/sharp.test.js index 04b63ed7b..82e332e3d 100644 --- a/packages/integrations/image/test/sharp.test.js +++ b/packages/integrations/image/test/sharp.test.js @@ -13,7 +13,7 @@ describe('Sharp service', () => { ['height', { src, height: 414 }], ['width & height', { src, height: 400, width: 200 }], ['aspect ratio string', { src, aspectRatio: '16:9' }], - ['aspect ratio float', { src, aspectRatio: 1.7 }] + ['aspect ratio float', { src, aspectRatio: 1.7 }], ].forEach(([description, props]) => { it(description, async () => { const { searchParams } = await sharp.serializeTransform(props); @@ -48,7 +48,7 @@ describe('Sharp service', () => { ['height', `h=414&href=${href}`, { src, height: 414 }], ['width & height', `w=200&h=400&href=${href}`, { src, height: 400, width: 200 }], ['aspect ratio string', `ar=16:9&href=${href}`, { src, aspectRatio: '16:9' }], - ['aspect ratio float', `ar=1.7&href=${href}`, { src, aspectRatio: 1.7 }] + ['aspect ratio float', `ar=1.7&href=${href}`, { src, aspectRatio: 1.7 }], ].forEach(([description, params, expected]) => { it(description, async () => { const searchParams = new URLSearchParams(params); |