@@ -7,6 +7,7 @@ import { inspect } from '../../jsutils/inspect.js';
77
88import  {  GraphQLError  }  from  '../../error/GraphQLError.js' ; 
99
10+ import  {  DirectiveLocation  }  from  '../../language/directiveLocation.js' ; 
1011import  {  Kind  }  from  '../../language/kinds.js' ; 
1112import  {  parse  }  from  '../../language/parser.js' ; 
1213
@@ -22,15 +23,15 @@ import {
2223  GraphQLObjectType , 
2324  GraphQLScalarType , 
2425}  from  '../../type/definition.js' ; 
26+ import  { 
27+   GraphQLDirective , 
28+   GraphQLIncludeDirective , 
29+ }  from  '../../type/directives.js' ; 
2530import  {  GraphQLBoolean ,  GraphQLString  }  from  '../../type/scalars.js' ; 
2631import  {  GraphQLSchema  }  from  '../../type/schema.js' ; 
2732
2833import  {  executeSync  }  from  '../execute.js' ; 
2934import  {  getVariableValues  }  from  '../values.js' ; 
30- import  {  GraphQLSkipDirective  }  from  '../../type/directives.js' ; 
31- import  {  GraphQLIncludeDirective  }  from  '../../type/directives.js' ; 
32- import  {  GraphQLDirective  }  from  '../../type/directives.js' ; 
33- import  {  DirectiveLocation  }  from  '../../language/directiveLocation.js' ; 
3435
3536const  TestFaultyScalarGraphQLError  =  new  GraphQLError ( 
3637  'FaultyScalarErrorMessage' , 
@@ -1506,8 +1507,21 @@ describe('Execute: Handles inputs', () => {
15061507          fieldWithNonNullableStringInput @skip(if: $value) 
15071508        } 
15081509      ` ) ; 
1509-       expect ( result ) . to . deep . equal ( { 
1510-         data : { } , 
1510+ 
1511+       expectJSON ( result ) . toDeepEqual ( { 
1512+         data : null , 
1513+         errors : [ 
1514+           { 
1515+             locations : [ 
1516+               { 
1517+                 column : 53 , 
1518+                 line : 6 , 
1519+               } , 
1520+             ] , 
1521+             message :
1522+               'Argument "if" of non-null type "Boolean!" must not be null.' , 
1523+           } , 
1524+         ] , 
15111525      } ) ; 
15121526    } ) ; 
15131527  } ) ; 
0 commit comments