@@ -18,8 +18,11 @@ describe('Useful errors when incorrectly used', () => {
1818 it ( 'requires option factory function to return object' , async ( ) => {
1919 const app = express ( ) ;
2020
21- // $DisableFlowOnNegativeTest
22- app . use ( '/graphql' , graphqlHTTP ( ( ) => null ) ) ;
21+ app . use (
22+ '/graphql' ,
23+ // $DisableFlowOnNegativeTest
24+ graphqlHTTP ( ( ) => null ) ,
25+ ) ;
2326
2427 const response = await request ( app ) . get ( '/graphql?query={test}' ) ;
2528
@@ -37,8 +40,11 @@ describe('Useful errors when incorrectly used', () => {
3740 it ( 'requires option factory function to return object or promise of object' , async ( ) => {
3841 const app = express ( ) ;
3942
40- // $DisableFlowOnNegativeTest
41- app . use ( '/graphql' , graphqlHTTP ( ( ) => Promise . resolve ( null ) ) ) ;
43+ app . use (
44+ '/graphql' ,
45+ // $DisableFlowOnNegativeTest
46+ graphqlHTTP ( ( ) => Promise . resolve ( null ) ) ,
47+ ) ;
4248
4349 const response = await request ( app ) . get ( '/graphql?query={test}' ) ;
4450
@@ -56,8 +62,11 @@ describe('Useful errors when incorrectly used', () => {
5662 it ( 'requires option factory function to return object with schema' , async ( ) => {
5763 const app = express ( ) ;
5864
59- // $DisableFlowOnNegativeTest
60- app . use ( '/graphql' , graphqlHTTP ( ( ) => ( { } ) ) ) ;
65+ app . use (
66+ '/graphql' ,
67+ // $DisableFlowOnNegativeTest
68+ graphqlHTTP ( ( ) => ( { } ) ) ,
69+ ) ;
6170
6271 const response = await request ( app ) . get ( '/graphql?query={test}' ) ;
6372
@@ -72,8 +81,11 @@ describe('Useful errors when incorrectly used', () => {
7281 it ( 'requires option factory function to return object or promise of object with schema' , async ( ) => {
7382 const app = express ( ) ;
7483
75- // $DisableFlowOnNegativeTest
76- app . use ( '/graphql' , graphqlHTTP ( ( ) => Promise . resolve ( { } ) ) ) ;
84+ app . use (
85+ '/graphql' ,
86+ // $DisableFlowOnNegativeTest
87+ graphqlHTTP ( ( ) => Promise . resolve ( { } ) ) ,
88+ ) ;
7789
7890 const response = await request ( app ) . get ( '/graphql?query={test}' ) ;
7991
@@ -91,7 +103,10 @@ describe('Useful errors when incorrectly used', () => {
91103
92104 const app = express ( ) ;
93105
94- app . use ( '/graphql' , graphqlHTTP ( ( ) => Promise . resolve ( { schema } ) ) ) ;
106+ app . use (
107+ '/graphql' ,
108+ graphqlHTTP ( ( ) => Promise . resolve ( { schema } ) ) ,
109+ ) ;
95110
96111 const response = await request ( app ) . get ( '/graphql?query={test}' ) ;
97112
0 commit comments