Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Nov 2, 2020
1 parent f9a3a23 commit 794bf4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/gatsby-plugin-manifest/src/__tests__/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,12 @@ describe(`Test plugin manifest options`, () => {
// No sharp calls because this is manual mode: user provides all icon sizes
// rather than the plugin generating them
expect(sharp).toHaveBeenCalledTimes(0)
expect(fs.mkdirSync).toHaveBeenNthCalledWith(1, firstIconPath)
expect(fs.mkdirSync).toHaveBeenNthCalledWith(2, secondIconPath)
expect(fs.mkdirSync).toHaveBeenNthCalledWith(1, firstIconPath, {
recursive: true,
})
expect(fs.mkdirSync).toHaveBeenNthCalledWith(2, secondIconPath, {
recursive: true,
})
})

it(`invokes sharp if icon argument specified`, async () => {
Expand Down

0 comments on commit 794bf4a

Please sign in to comment.