@@ -417,15 +417,15 @@ describe('Type System: Schema', () => {
417417 } ) ;
418418
419419 it ( 'returns `undefined` for introspection fields in wrong location' , ( ) => {
420- expect ( schema . getField ( petType , '__type' ) ) . to . equal ( undefined ) ;
421- expect ( schema . getField ( dogType , '__type' ) ) . to . equal ( undefined ) ;
422- expect ( schema . getField ( mutationType , '__type' ) ) . to . equal ( undefined ) ;
423- expect ( schema . getField ( subscriptionType , '__type' ) ) . to . equal ( undefined ) ;
424-
425- expect ( schema . getField ( petType , '__schema' ) ) . to . equal ( undefined ) ;
426- expect ( schema . getField ( dogType , '__schema' ) ) . to . equal ( undefined ) ;
427- expect ( schema . getField ( mutationType , '__schema' ) ) . to . equal ( undefined ) ;
428- expect ( schema . getField ( subscriptionType , '__schema' ) ) . to . equal ( undefined ) ;
420+ expectField ( petType , '__type' ) . to . equal ( undefined ) ;
421+ expectField ( dogType , '__type' ) . to . equal ( undefined ) ;
422+ expectField ( mutationType , '__type' ) . to . equal ( undefined ) ;
423+ expectField ( subscriptionType , '__type' ) . to . equal ( undefined ) ;
424+
425+ expectField ( petType , '__schema' ) . to . equal ( undefined ) ;
426+ expectField ( dogType , '__schema' ) . to . equal ( undefined ) ;
427+ expectField ( mutationType , '__schema' ) . to . equal ( undefined ) ;
428+ expectField ( subscriptionType , '__schema' ) . to . equal ( undefined ) ;
429429 } ) ;
430430 } ) ;
431431
0 commit comments