@@ -169,14 +169,10 @@ const TypeA = new GraphQLObjectType({
169169 nameA : { type : GraphQLString } ,
170170 } ) ,
171171 isTypeOf : ( _value , _context , _info ) =>
172- new Promise (
173- ( _resolve , reject ) =>
174- void setTimeout (
175- ( ) => void reject ( new Error ( "TypeA_isTypeOf_rejected" ) ) ,
176- 10 ,
177- ) ,
172+ new Promise ( ( _resolve , reject ) =>
173+ // eslint-disable-next-line
174+ setTimeout ( ( ) => reject ( new Error ( 'TypeA_isTypeOf_rejected' ) ) , 10 ) ,
178175 ) ,
179- } ,
180176} ) ;
181177
182178const TypeB = new GraphQLObjectType ( {
@@ -186,9 +182,7 @@ const TypeB = new GraphQLObjectType({
186182 id : { type : GraphQLString } ,
187183 nameB : { type : GraphQLString } ,
188184 } ) ,
189- isTypeOf : ( value : any , _context , _info ) => {
190- return value . id === 'b' ;
191- } ,
185+ isTypeOf : ( value : any , _context , _info ) => value . id === 'b' ,
192186} ) ;
193187
194188const queryTypeWithSearchable = new GraphQLObjectType ( {
@@ -640,6 +634,7 @@ describe('Execute: Union and intersection types', () => {
640634 const unhandledRejectionListener = ( reason : any ) => {
641635 unhandledRejection = reason ;
642636 } ;
637+ // eslint-disable-next-line
643638 process . on ( 'unhandledRejection' , unhandledRejectionListener ) ;
644639 /* c8 ignore end */
645640
@@ -648,7 +643,7 @@ describe('Execute: Union and intersection types', () => {
648643 document,
649644 } ) ;
650645
651- expect ( result . errors ) . to . be . undefined ;
646+ expect ( result . errors ) . to . equal ( undefined ) ;
652647 expect ( result . data ) . to . deep . equal ( {
653648 search : {
654649 __typename : 'TypeB' ,
@@ -658,10 +653,12 @@ describe('Execute: Union and intersection types', () => {
658653 } ) ;
659654
660655 // Give the TypeA promise a chance to reject and the listener to fire
656+ // eslint-disable-next-line
661657 await new Promise ( ( resolve ) => setTimeout ( resolve , 20 ) ) ;
662658
659+ // eslint-disable-next-line
663660 process . removeListener ( 'unhandledRejection' , unhandledRejectionListener ) ;
664661
665- expect ( unhandledRejection ) . to . be . null ;
662+ expect ( unhandledRejection ) . to . equal ( null ) ;
666663 } ) ;
667664} ) ;
0 commit comments