@@ -793,23 +793,33 @@ describe('Schema Builder', () => {
793793 ) . getFields ( ) ;
794794
795795 const newInput = inputFields . newInput ;
796- expect ( newInput . isDeprecated ) . to . equal ( false ) ;
796+ expect ( newInput ) . to . include ( {
797+ isDeprecated : false ,
798+ } ) ;
797799
798800 const oldInput = inputFields . oldInput ;
799- expect ( oldInput . isDeprecated ) . to . equal ( true ) ;
800- expect ( oldInput . deprecationReason ) . to . equal ( 'No longer supported' ) ;
801+ expect ( oldInput ) . to . include ( {
802+ isDeprecated : true ,
803+ deprecationReason : 'No longer supported' ,
804+ } ) ;
801805
802806 const otherInput = inputFields . otherInput ;
803- expect ( otherInput . isDeprecated ) . to . equal ( true ) ;
804- expect ( otherInput . deprecationReason ) . to . equal ( 'Use newInput' ) ;
807+ expect ( otherInput ) . to . include ( {
808+ isDeprecated : true ,
809+ deprecationReason : 'Use newInput' ,
810+ } ) ;
805811
806812 const field3OldArg = rootFields . field3 . args [ 0 ] ;
807- expect ( field3OldArg . isDeprecated ) . to . equal ( true ) ;
808- expect ( field3OldArg . deprecationReason ) . to . equal ( 'No longer supported' ) ;
813+ expect ( field3OldArg ) . to . include ( {
814+ isDeprecated : true ,
815+ deprecationReason : 'No longer supported' ,
816+ } ) ;
809817
810818 const field4OldArg = rootFields . field4 . args [ 0 ] ;
811- expect ( field4OldArg . isDeprecated ) . to . equal ( true ) ;
812- expect ( field4OldArg . deprecationReason ) . to . equal ( 'why not?' ) ;
819+ expect ( field4OldArg ) . to . include ( {
820+ isDeprecated : true ,
821+ deprecationReason : 'Why not?' ,
822+ } ) ;
813823 } ) ;
814824
815825 it ( 'Supports @specifiedBy' , ( ) => {
0 commit comments