Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Feb 27, 2020
1 parent a82a83a commit 63cd66b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Interfaces.ts
Expand Up @@ -71,11 +71,11 @@ export type MergeInfo = {
info: GraphQLResolveInfo,
transforms?: Array<Transform>,
) => any;
delegateToSchema<TContext>(options: IDelegateToSchemaOptions<TContext>): any;
fragments: Array<{
field: string;
fragment: string;
}>;
delegateToSchema<TContext>(options: IDelegateToSchemaOptions<TContext>): any;
};

export type IFieldResolver<TSource, TContext, TArgs = Record<string, any>> = (
Expand Down
4 changes: 2 additions & 2 deletions src/mock.ts
Expand Up @@ -217,8 +217,8 @@ function addMockFunctionsToSchema({
// we have to handle the root mutation and root query types differently,
// because no resolver is called at the root.
/* istanbul ignore next: Must provide schema DefinitionNode with query type or a type named Query. */
const isOnQueryType: boolean = schema.getQueryType() && schema.getQueryType().name === typeName
const isOnMutationType: boolean = schema.getMutationType() && schema.getMutationType().name === typeName
const isOnQueryType: boolean = schema.getQueryType() && schema.getQueryType().name === typeName;
const isOnMutationType: boolean = schema.getMutationType() && schema.getMutationType().name === typeName;

if (isOnQueryType || isOnMutationType) {
if (mockFunctionMap.has(typeName)) {
Expand Down

0 comments on commit 63cd66b

Please sign in to comment.