File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ describe('composeWithRelay', () => {
4242 describe ( 'when pass RootQuery type composer' , ( ) => {
4343 it ( 'should add `node` field to RootQuery' , ( ) => {
4444 const nodeField = rootQueryComposer . getField ( 'node' ) ;
45+ // $FlowFixMe
4546 expect ( nodeField . type ) . toBeInstanceOf ( GraphQLInterfaceType ) ;
4647 // $FlowFixMe
4748 expect ( nodeField . type . name ) . toBe ( 'Node' ) ;
@@ -51,11 +52,13 @@ describe('composeWithRelay', () => {
5152 describe ( 'when pass User type composer (not RootQuery)' , ( ) => {
5253 it ( 'should add or override id field' , ( ) => {
5354 const idField = userComposer . getField ( 'id' ) ;
55+ // $FlowFixMe
5456 expect ( idField . description ) . toContain ( 'globally unique ID' ) ;
5557 } ) ;
5658
5759 it ( 'should make id field NonNull' , ( ) => {
5860 const idField = userComposer . getField ( 'id' ) ;
61+ // $FlowFixMe
5962 expect ( idField . type ) . toBeInstanceOf ( GraphQLNonNull ) ;
6063 } ) ;
6164
You can’t perform that action at this time.
0 commit comments