Skip to content

Commit e3e9b93

Browse files
authored
tests: various prettier fixes (#186)
1 parent 0df2632 commit e3e9b93

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/schema/__tests__/film.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ describe('Film type', async () => {
117117
edges { cursor, node { title } } }
118118
}`;
119119
const nextResult = await swapi(nextQuery);
120-
expect(nextResult.data.allFilms.edges.map(e => e.node.title)).to.deep.equal(
121-
['Return of the Jedi', 'The Phantom Menace'],
122-
);
120+
expect(
121+
nextResult.data.allFilms.edges.map(e => e.node.title),
122+
).to.deep.equal(['Return of the Jedi', 'The Phantom Menace']);
123123
});
124124
});

src/schema/__tests__/person.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ describe('Person type', async () => {
120120
edges { cursor, node { name } } }
121121
}`;
122122
const nextResult = await swapi(nextQuery);
123-
expect(nextResult.data.allPeople.edges.map(e => e.node.name)).to.deep.equal(
124-
['R2-D2', 'Darth Vader'],
125-
);
123+
expect(
124+
nextResult.data.allPeople.edges.map(e => e.node.name),
125+
).to.deep.equal(['R2-D2', 'Darth Vader']);
126126
});
127127

128128
describe('Edge cases', () => {

src/service.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ app.get('/schema', (req, res) => {
3535
app.use('/schema.graphql', express.static('./schema.graphql'));
3636

3737
// Finally, serve up the GraphQL Schema itself
38-
app.use('/', graphqlHTTP(() => ({ schema: swapiSchema })));
38+
app.use(
39+
'/',
40+
graphqlHTTP(() => ({ schema: swapiSchema })),
41+
);
3942

4043
module.exports = app;

0 commit comments

Comments
 (0)