@@ -183,11 +183,7 @@ function validateDirectives(context: SchemaValidationContext): void {
183
183
if ( isRequiredArgument ( arg ) && arg . deprecationReason != null ) {
184
184
context . reportError (
185
185
`Required argument @${ directive . name } (${ arg . name } :) cannot be deprecated.` ,
186
- [
187
- getDeprecatedDirectiveNode ( arg . astNode ) ,
188
- // istanbul ignore next (TODO need to write coverage tests)
189
- arg . astNode ?. type ,
190
- ] ,
186
+ [ getDeprecatedDirectiveNode ( arg . astNode ) , arg . astNode ?. type ] ,
191
187
) ;
192
188
}
193
189
}
@@ -299,11 +295,7 @@ function validateFields(
299
295
if ( isRequiredArgument ( arg ) && arg . deprecationReason != null ) {
300
296
context . reportError (
301
297
`Required argument ${ type . name } .${ field . name } (${ argName } :) cannot be deprecated.` ,
302
- [
303
- getDeprecatedDirectiveNode ( arg . astNode ) ,
304
- // istanbul ignore next (TODO need to write coverage tests)
305
- arg . astNode ?. type ,
306
- ] ,
298
+ [ getDeprecatedDirectiveNode ( arg . astNode ) , arg . astNode ?. type ] ,
307
299
) ;
308
300
}
309
301
}
@@ -376,12 +368,7 @@ function validateTypeImplementsInterface(
376
368
`Interface field ${ iface . name } .${ fieldName } expects type ` +
377
369
`${ inspect ( ifaceField . type ) } but ${ type . name } .${ fieldName } ` +
378
370
`is type ${ inspect ( typeField . type ) } .` ,
379
- [
380
- // istanbul ignore next (TODO need to write coverage tests)
381
- ifaceField . astNode ?. type ,
382
- // istanbul ignore next (TODO need to write coverage tests)
383
- typeField . astNode ?. type ,
384
- ] ,
371
+ [ ifaceField . astNode ?. type , typeField . astNode ?. type ] ,
385
372
) ;
386
373
}
387
374
0 commit comments