Skip to content

Commit

Permalink
Update snapshot and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
0x80 committed Jun 12, 2017
1 parent 88efe54 commit 89eafc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ Array [
"plugins": Array [],
},
"resolve": "",
"version": undefined,
},
Object {
"name": "default-site-plugin",
"pluginOptions": Object {
"plugins": Array [],
},
"resolve": "",
"version": "n/a",
"version": "d41d8cd98f00b204e9800998ecf8427e",
},
]
`;
Expand Down
7 changes: 6 additions & 1 deletion packages/gatsby/src/bootstrap/load-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ module.exports = async (config = {}) => {
// Add some default values for tests as we don't actually
// want to try to load anything during tests.
if (plugin.resolve === `___TEST___`) {
return { name: `TEST` }
return {
name: `TEST`,
pluginOptions: {
plugins: [],
},
}
}

const info = resolvePlugin(plugin.resolve)
Expand Down

0 comments on commit 89eafc7

Please sign in to comment.