Skip to content

Commit

Permalink
fix test description
Browse files Browse the repository at this point in the history
  • Loading branch information
oshi97 committed Nov 16, 2020
1 parent 95b0f39 commit 7b2ee92
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/static/js/formatters-internal/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down

0 comments on commit 7b2ee92

Please sign in to comment.