Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Jul 26, 2022
1 parent 494c821 commit 9dc8d49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/gatsby-plugin-sharp/src/__tests__/index.js
Expand Up @@ -549,6 +549,18 @@ describe(`gatsby-plugin-sharp`, () => {
}
`)
})

it(`handles really wide aspect ratios for blurred placeholder`, async () => {
const result = await base64({
file: getFileObject(
path.join(__dirname, `images/wide-aspect-ratio.png`)
),
args,
})

expect(result.width).toEqual(20)
expect(result.height).toEqual(1)
})
})

describe(`tracedSVG`, () => {
Expand Down

0 comments on commit 9dc8d49

Please sign in to comment.