Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangoacher committed Mar 4, 2020
1 parent def9666 commit 09a2185
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/trail-fastify-graphql-plugin/lib/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function makeResolvers (opts) {
async updateTrail (_, { id, ...trail }) {
const record = await trailsManager.get(id)
if (!record) {
return null
return null
}
const { id: x, ...fields } = record
const ok = await trailsManager.update(id, { ...fields, ...trail })
Expand Down
12 changes: 6 additions & 6 deletions packages/trail-fastify-graphql-plugin/test/graphql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ describe('GraphQL', () => {
}
}`)

//expect(ok).to.be.true()
//const trail = await getTrail(this, id)
// expect(ok).to.be.true()
// const trail = await getTrail(this, id)
expect(trail.what.id).to.equal(newWhat)
})

Expand All @@ -317,8 +317,8 @@ describe('GraphQL', () => {
}
}`)

//expect(ok).to.be.true()
//const trail = await getTrail(this, id)
// expect(ok).to.be.true()
// const trail = await getTrail(this, id)
expect(trail.what.id).to.equal(newWhat)
expect(trail.subject.id).to.equal(newSubject)
})
Expand All @@ -343,8 +343,8 @@ describe('GraphQL', () => {
}
}`, { id, when, who, what: newWhat, subject })

//expect(ok).to.be.true()
//const trail = await getTrail(this, id)
// expect(ok).to.be.true()
// const trail = await getTrail(this, id)
expect(trail.what.id).to.equal(newWhat)
})

Expand Down
2 changes: 1 addition & 1 deletion packages/trail-fastify-graphql-plugin/test/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ describe('Trails graphql HTTP operations', () => {
subject: 'subject'
})

const meta = { tags: [ 'foo', 'bar' ] }
const meta = { tags: ['foo', 'bar'] }

const response = await server.inject({
method: 'POST',
Expand Down

0 comments on commit 09a2185

Please sign in to comment.