From 76cd478d12a8415c9adbd81f0ac9b7c5e37f4098 Mon Sep 17 00:00:00 2001 From: yaacovCR Date: Sun, 2 Jun 2019 00:35:41 -0400 Subject: [PATCH] lint --- src/Interfaces.ts | 2 +- src/mock.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Interfaces.ts b/src/Interfaces.ts index d5e513c0814..a9cca8d74d6 100644 --- a/src/Interfaces.ts +++ b/src/Interfaces.ts @@ -71,11 +71,11 @@ export type MergeInfo = { info: GraphQLResolveInfo, transforms?: Array, ) => any; - delegateToSchema(options: IDelegateToSchemaOptions): any; fragments: Array<{ field: string; fragment: string; }>; + delegateToSchema(options: IDelegateToSchemaOptions): any; }; export type IFieldResolver> = ( diff --git a/src/mock.ts b/src/mock.ts index 15782a709fa..465b763f490 100644 --- a/src/mock.ts +++ b/src/mock.ts @@ -216,8 +216,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)) {