diff --git a/src/schema/__tests__/film.js b/src/schema/__tests__/film.js index c874115..ecd633b 100644 --- a/src/schema/__tests__/film.js +++ b/src/schema/__tests__/film.js @@ -117,8 +117,8 @@ describe('Film type', async () => { edges { cursor, node { title } } } }`; const nextResult = await swapi(nextQuery); - expect(nextResult.data.allFilms.edges.map(e => e.node.title)).to.deep.equal( - ['Return of the Jedi', 'The Phantom Menace'], - ); + expect( + nextResult.data.allFilms.edges.map(e => e.node.title), + ).to.deep.equal(['Return of the Jedi', 'The Phantom Menace']); }); }); diff --git a/src/schema/__tests__/person.js b/src/schema/__tests__/person.js index 8dc1511..bd1fd46 100644 --- a/src/schema/__tests__/person.js +++ b/src/schema/__tests__/person.js @@ -120,9 +120,9 @@ describe('Person type', async () => { edges { cursor, node { name } } } }`; const nextResult = await swapi(nextQuery); - expect(nextResult.data.allPeople.edges.map(e => e.node.name)).to.deep.equal( - ['R2-D2', 'Darth Vader'], - ); + expect( + nextResult.data.allPeople.edges.map(e => e.node.name), + ).to.deep.equal(['R2-D2', 'Darth Vader']); }); describe('Edge cases', () => { diff --git a/src/service.js b/src/service.js index 3709c9a..c3536ea 100644 --- a/src/service.js +++ b/src/service.js @@ -35,6 +35,9 @@ app.get('/schema', (req, res) => { app.use('/schema.graphql', express.static('./schema.graphql')); // Finally, serve up the GraphQL Schema itself -app.use('/', graphqlHTTP(() => ({ schema: swapiSchema }))); +app.use( + '/', + graphqlHTTP(() => ({ schema: swapiSchema })), +); module.exports = app;