diff --git a/tests/static/js/formatters-internal/image.js b/tests/static/js/formatters-internal/image.js index 12a3b51b8..6b552c714 100644 --- a/tests/static/js/formatters-internal/image.js +++ b/tests/static/js/formatters-internal/image.js @@ -55,9 +55,9 @@ describe('image formatter', () => { expect(imageUrl).toEqual('https://a.mktgcdn.com/p/619x348.jpg'); }); - it('return the largest image when no image fits the dimensions', () => { - const imageUrl = Formatters.image(img, '99999x99999').url; - expect(imageUrl).toEqual('https://a.mktgcdn.com/p/1024x768.jpg'); + it('return the smallest image when no image fits the dimensions', () => { + const imageUrl = Formatters.image(img, '1x1').url; + expect(imageUrl).toEqual('https://a.mktgcdn.com/p/196x110.jpg'); }); it('returns the smallest image when no dimensions given', () => { @@ -87,9 +87,9 @@ describe('image formatter', () => { expect(imageUrl).toEqual('https://a.mktgcdn.com/p/600x337.jpg'); }); - it('returns the smallest image when no image fits the dimensions', () => { - const imageUrl = Formatters.image(img, '-1x-1', false).url; - expect(imageUrl).toEqual('https://a.mktgcdn.com/p/196x110.jpg'); + it('returns the largest image when no image fits the dimensions', () => { + const imageUrl = Formatters.image(img, '9999x9999', false).url; + expect(imageUrl).toEqual('https://a.mktgcdn.com/p/1024x768.jpg'); }); it('return the largest image when no dimensions given', () => {