@@ -183,11 +183,7 @@ function validateDirectives(context: SchemaValidationContext): void {
183183 if ( isRequiredArgument ( arg ) && arg . deprecationReason != null ) {
184184 context . reportError (
185185 `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 ] ,
191187 ) ;
192188 }
193189 }
@@ -299,11 +295,7 @@ function validateFields(
299295 if ( isRequiredArgument ( arg ) && arg . deprecationReason != null ) {
300296 context . reportError (
301297 `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 ] ,
307299 ) ;
308300 }
309301 }
@@ -376,12 +368,7 @@ function validateTypeImplementsInterface(
376368 `Interface field ${ iface . name } .${ fieldName } expects type ` +
377369 `${ inspect ( ifaceField . type ) } but ${ type . name } .${ fieldName } ` +
378370 `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 ] ,
385372 ) ;
386373 }
387374
0 commit comments