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 cc4df72 commit 2a09d8d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/trail-fastify-graphql-plugin/test/graphql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ describe('GraphQL', () => {
const who = 'dog'
const what = 'open'
const subject = 'window'
const where = `{ where: "there" }`
const why = `{ reason: "because" }`
const meta = `{ meta0: 0, meta1: "one", meta2: [ 2 ] }`
const where = '{ where: "there" }'
const why = '{ reason: "because" }'
const meta = '{ meta0: 0, meta1: "one", meta2: [ 2 ] }'

const { data: { trail } } = await this.subject.execQuery(`mutation {
const { data: { trail } } = await this.subject.execQuery(`mutation {
trail: insertTrail(when: "${when}", who: "${who}", what: "${what}", subject: "${subject}", where: ${where}, why: ${why}, meta: ${meta}) {
id
when
Expand All @@ -268,16 +268,16 @@ describe('GraphQL', () => {

expect(id).to.be.a.number()

const expected = convertToTrail({
id,
when,
who,
what,
subject,
where: { where: 'there' },
why: { reason: 'because' },
meta: { meta0: 0, meta1: 'one', meta2: [ 2 ] }
})
const expected = convertToTrail({
id,
when,
who,
what,
subject,
where: { where: 'there' },
why: { reason: 'because' },
meta: { meta0: 0, meta1: 'one', meta2: [2] }
})

expect(trail).to.equal(expected)
})
Expand Down

0 comments on commit 2a09d8d

Please sign in to comment.