@@ -24,8 +24,9 @@ describe('composeWithRelay', () => {
2424 } ) ;
2525
2626 it ( 'should throw error if got a not TypeComposer' , ( ) => {
27- // $FlowFixMe
28- expect ( ( ) => composeWithRelay ( 123 ) ) . toThrowError ( 'should provide TypeComposer instance' ) ;
27+ expect ( ( ) => composeWithRelay ( ( 123 : any ) ) ) . toThrowError (
28+ 'should provide TypeComposer instance'
29+ ) ;
2930 } ) ;
3031
3132 it ( 'should throw error if TypeComposer without recordIdFn' , ( ) => {
@@ -45,9 +46,8 @@ describe('composeWithRelay', () => {
4546
4647 describe ( 'when pass RootQuery type composer' , ( ) => {
4748 it ( 'should add `node` field to RootQuery' , ( ) => {
48- const nodeField = rootQueryComposer . getField ( 'node' ) ;
49+ const nodeField : any = rootQueryComposer . getField ( 'node' ) ;
4950 expect ( nodeField . type ) . toBeInstanceOf ( GraphQLInterfaceType ) ;
50- // $FlowFixMe
5151 expect ( nodeField . type . name ) . toBe ( 'Node' ) ;
5252 } ) ;
5353 } ) ;
@@ -77,10 +77,8 @@ describe('composeWithRelay', () => {
7777 name
7878 }
7979 }` ;
80- const result = await graphql ( schema , query ) ;
81- // $FlowFixMe
80+ const result : any = await graphql ( schema , query ) ;
8281 expect ( result . data . user . id ) . toBe ( toGlobalId ( 'User' , 1 ) ) ;
83- // $FlowFixMe
8482 expect ( result . data . user . name ) . toBe ( 'Pavel' ) ;
8583 } ) ;
8684
@@ -101,10 +99,8 @@ describe('composeWithRelay', () => {
10199 id
102100 name
103101 }` ;
104- const result = await graphql ( schema , query ) ;
105- // $FlowFixMe
102+ const result : any = await graphql ( schema , query ) ;
106103 expect ( result . data . node . id ) . toBe ( toGlobalId ( 'User' , 1 ) ) ;
107- // $FlowFixMe
108104 expect ( result . data . node . name ) . toBe ( 'Pavel' ) ;
109105 } ) ;
110106
@@ -125,10 +121,8 @@ describe('composeWithRelay', () => {
125121 clientMutationId
126122 }
127123 }` ;
128- const result = await graphql ( schema , query ) ;
129- // $FlowFixMe
124+ const result : any = await graphql ( schema , query ) ;
130125 expect ( result . data . createUser . record . name ) . toBe ( 'Ok' ) ;
131- // $FlowFixMe
132126 expect ( result . data . createUser . clientMutationId ) . toBe ( '123' ) ;
133127 } ) ;
134128 } ) ;
0 commit comments