Skip to content

Commit

Permalink
Update packages & format
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Feb 10, 2018
1 parent e519a5b commit 7796aae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/__tests__/create-file-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ describe(`create-file-node`, () => {
it(`creates a file node`, () => {
const createNodeId = jest.fn()
createNodeId.mockReturnValue(`uuid-from-gatsby`)
return createFileNode(path.resolve(`${__dirname}/fixtures/file.json`), createNodeId, {})
return createFileNode(
path.resolve(`${__dirname}/fixtures/file.json`),
createNodeId,
{}
)
})
})
6 changes: 5 additions & 1 deletion src/create-file-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ const createId = path => {

exports.createId = createId

exports.createFileNode = async (pathToFile, createNodeId, pluginOptions = {}) => {
exports.createFileNode = async (
pathToFile,
createNodeId,
pluginOptions = {}
) => {
const slashed = slash(pathToFile)
const parsedSlashed = path.parse(slashed)
const slashedFile = {
Expand Down

0 comments on commit 7796aae

Please sign in to comment.