Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgandecki committed Jun 11, 2019
1 parent c1e87d1 commit 01baddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions gateway-js/src/datasources/LocalGraphQLDatasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class LocalGraphQLDataSource implements GraphQLDataSource {
}

async process<TContext>({
request, context
request,
context,
}: Pick<GraphQLRequestContext<TContext>, 'request' | 'context'>): Promise<
GraphQLResponse
> {
Expand All @@ -26,7 +27,7 @@ export class LocalGraphQLDataSource implements GraphQLDataSource {
source: request.query!,
variableValues: request.variables,
operationName: request.operationName,
contextValue: context
contextValue: context,
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ describe('constructing requests', () => {
context: { userId: 2 },
});

expect(data).toEqual({ me: {name: 'james' }});
expect(data).toEqual({ me: { name: 'james' } });
});
});

0 comments on commit 01baddf

Please sign in to comment.