@@ -46,7 +46,7 @@ describe('HttpLink', () => {
4646 } ;
4747
4848 execute ( link , op ) . subscribe ( {
49- next : ( result : any ) => expect ( result ) . toEqual ( { data } ) ,
49+ next : result => expect ( result ) . toEqual ( { data } ) ,
5050 error : ( ) => {
5151 throw new Error ( 'Should not be here' ) ;
5252 } ,
@@ -73,7 +73,7 @@ describe('HttpLink', () => {
7373 } ;
7474
7575 execute ( link , op ) . subscribe ( {
76- next : ( result : any ) => expect ( result ) . toEqual ( { data } ) ,
76+ next : result => expect ( result ) . toEqual ( { data } ) ,
7777 error : ( ) => {
7878 throw new Error ( 'Should not be here' ) ;
7979 } ,
@@ -100,7 +100,7 @@ describe('HttpLink', () => {
100100 } ;
101101
102102 execute ( link , op ) . subscribe ( {
103- next : ( result : any ) => expect ( result ) . toEqual ( { data } ) ,
103+ next : result => expect ( result ) . toEqual ( { data } ) ,
104104 error : ( ) => {
105105 throw new Error ( 'Should not be here' ) ;
106106 } ,
@@ -511,7 +511,7 @@ describe('HttpLink', () => {
511511
512512 test ( 'should set response in context' , ( done : jest . DoneCallback ) => {
513513 const afterware = new ApolloLink ( ( op , forward ) => {
514- return forward ( op ) . map ( ( response : any ) => {
514+ return forward ( op ) . map ( response => {
515515 const context = op . getContext ( ) ;
516516
517517 expect ( context . response ) . toBeDefined ( ) ;
@@ -596,11 +596,11 @@ describe('HttpLink', () => {
596596 return m2 ;
597597 } ) ,
598598 ) . subscribe ( {
599- next ( result : any ) {
599+ next ( result ) {
600600 expect ( result . data ) . toMatchObject ( data2 ) ;
601601 done ( ) ;
602602 } ,
603- error ( error : any ) {
603+ error ( error ) {
604604 done . fail ( error ) ;
605605 } ,
606606 } ) ;
0 commit comments