@@ -32,9 +32,9 @@ const TestFaultyScalarGraphQLError = new GraphQLError(
32
32
'FaultyScalarErrorMessage' ,
33
33
{
34
34
extensions : {
35
- code : 'FaultyScalarErrorExtensionCode'
36
- }
37
- }
35
+ code : 'FaultyScalarErrorExtensionCode' ,
36
+ } ,
37
+ } ,
38
38
) ;
39
39
40
40
const TestFaultyScalar = new GraphQLScalarType ( {
@@ -66,7 +66,7 @@ const TestInputObject = new GraphQLInputObjectType({
66
66
b : { type : new GraphQLList ( GraphQLString ) } ,
67
67
c : { type : new GraphQLNonNull ( GraphQLString ) } ,
68
68
d : { type : TestComplexScalar } ,
69
- e : { type : TestFaultyScalar }
69
+ e : { type : TestFaultyScalar } ,
70
70
} ,
71
71
} ) ;
72
72
@@ -268,7 +268,6 @@ describe('Execute: Handles inputs', () => {
268
268
} ,
269
269
] ,
270
270
} ) ;
271
-
272
271
} ) ;
273
272
} ) ;
274
273
@@ -415,15 +414,15 @@ describe('Execute: Handles inputs', () => {
415
414
const params = { input : { c : 'foo' , e : 'SerializedValue' } } ;
416
415
const result = executeQuery ( doc , params ) ;
417
416
418
- expect ( result . errors ?. at ( 0 ) ?. originalError ) . to . equal ( TestFaultyScalarGraphQLError ) ;
419
417
expectJSON ( result ) . toDeepEqual ( {
420
418
errors : [
421
419
{
422
- message : 'Variable "$input" got invalid value "SerializedValue" at "input.e"; FaultyScalarErrorMessage' ,
420
+ message :
421
+ 'Variable "$input" got invalid value "SerializedValue" at "input.e"; FaultyScalarErrorMessage' ,
423
422
locations : [ { line : 2 , column : 16 } ] ,
424
- extensions : { code : 'FaultyScalarErrorExtensionCode' }
425
- }
426
- ]
423
+ extensions : { code : 'FaultyScalarErrorExtensionCode' } ,
424
+ } ,
425
+ ] ,
427
426
} ) ;
428
427
} ) ;
429
428
0 commit comments