Skip to content

Commit

Permalink
Revert "update tests"
Browse files Browse the repository at this point in the history
This reverts commit df2fb14.
  • Loading branch information
TylerBarnes committed Apr 20, 2022
1 parent 2cbab34 commit 6be8a93
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ describe(`gatsbyImageData`, () => {
srcSet: expect.any(String),
type: `image/webp`,
},
{
sizes: `300px`,
srcSet: expect.any(String),
type: `image/jpg`,
},
],
},
})
Expand Down Expand Up @@ -340,6 +345,11 @@ describe(`gatsbyImageData`, () => {
srcSet: expect.any(String),
type: `image/webp`,
},
{
sizes: `(min-width: 300px) 300px, 100vw`,
srcSet: expect.any(String),
type: `image/jpg`,
},
],
},
})
Expand Down Expand Up @@ -450,6 +460,11 @@ describe(`gatsbyImageData`, () => {
srcSet: expect.any(String),
type: `image/webp`,
},
{
sizes: `100vw`,
srcSet: expect.any(String),
type: `image/jpg`,
},
],
},
})
Expand Down Expand Up @@ -722,8 +737,8 @@ describe(`gatsbyImageData`, () => {

expect(constrainedResult?.images.sources[0].type).toBe(`image/avif`)
expect(constrainedResult?.images.sources[1].type).toBe(`image/webp`)
expect(constrainedResult?.images.fallback.src).toContain(`dog-portrait.jpg`)
expect(constrainedResult?.images.sources[2].type).toBe(`image/jpg`)

expect(constrainedResult?.images.sources.length).toBe(2)
expect(constrainedResult?.images.sources.length).toBe(3)
})
})

0 comments on commit 6be8a93

Please sign in to comment.