diff options
Diffstat (limited to 'packages/integrations/image/test/rotation.test.js')
-rw-r--r-- | packages/integrations/image/test/rotation.test.js | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/packages/integrations/image/test/rotation.test.js b/packages/integrations/image/test/rotation.test.js index 9eee72918..19333e572 100644 --- a/packages/integrations/image/test/rotation.test.js +++ b/packages/integrations/image/test/rotation.test.js @@ -33,16 +33,20 @@ describe('Image rotation', function () { it('includes <img> attributes', () => { for (let i = 0; i < 9; i++) { const image = $(`#landscape-${i}`); - + expect(image.attr('src')).to.equal(`/_image/assets/Landscape_${i}_1800x1200.jpg`); expect(image.attr('width')).to.equal('1800'); expect(image.attr('height')).to.equal('1200'); } }); - + it('built the optimized image', () => { for (let i = 0; i < 9; i++) { - verifyImage(`/_image/assets/Landscape_${i}_1800x1200.jpg`, { width: 1800, height: 1200, type: 'jpg' }); + verifyImage(`/_image/assets/Landscape_${i}_1800x1200.jpg`, { + width: 1800, + height: 1200, + type: 'jpg', + }); } }); }); @@ -51,16 +55,20 @@ describe('Image rotation', function () { it('includes <img> attributes', () => { for (let i = 0; i < 9; i++) { const image = $(`#portrait-${i}`); - + expect(image.attr('src')).to.equal(`/_image/assets/Portrait_${i}_1200x1800.jpg`); expect(image.attr('width')).to.equal('1200'); expect(image.attr('height')).to.equal('1800'); } }); - + it('built the optimized image', () => { for (let i = 0; i < 9; i++) { - verifyImage(`/_image/assets/Portrait_${i}_1200x1800.jpg`, { width: 1200, height: 1800, type: 'jpg' }); + verifyImage(`/_image/assets/Portrait_${i}_1200x1800.jpg`, { + width: 1200, + height: 1800, + type: 'jpg', + }); } }); }); |