@@ -95,11 +95,11 @@ describe('GraphQL-HTTP tests for connect', () => {
9595
9696 return {
9797 request : ( ) => supertest ( app ) ,
98- use : ( ... args ) => app . use ( ... args ) ,
98+ use : app . use . bind ( app ) ,
9999 // Connect only likes using app.use.
100- get : ( ... args ) => app . use ( ... args ) ,
101- put : ( ... args ) => app . use ( ... args ) ,
102- post : ( ... args ) => app . use ( ... args ) ,
100+ get : app . use . bind ( app ) ,
101+ put : app . use . bind ( app ) ,
102+ post : app . use . bind ( app ) ,
103103 } ;
104104 } ) ;
105105} ) ;
@@ -118,10 +118,10 @@ describe('GraphQL-HTTP tests for express', () => {
118118
119119 return {
120120 request : ( ) => supertest ( app ) ,
121- use : ( ... args ) => app . use ( ... args ) ,
122- get : ( ... args ) => app . get ( ... args ) ,
123- put : ( ... args ) => app . put ( ... args ) ,
124- post : ( ... args ) => app . post ( ... args ) ,
121+ use : app . use . bind ( app ) ,
122+ get : app . get . bind ( app ) ,
123+ put : app . put . bind ( app ) ,
124+ post : app . post . bind ( app ) ,
125125 } ;
126126 } ) ;
127127} ) ;
@@ -137,10 +137,10 @@ describe('GraphQL-HTTP tests for restify', () => {
137137
138138 return {
139139 request : ( ) => supertest ( app ) ,
140- use : ( ... args ) => app . use ( ... args ) ,
141- get : ( ... args ) => app . get ( ... args ) ,
142- put : ( ... args ) => app . put ( ... args ) ,
143- post : ( ... args ) => app . post ( ... args ) ,
140+ use : app . use . bind ( app ) ,
141+ get : app . get . bind ( app ) ,
142+ put : app . put . bind ( app ) ,
143+ post : app . post . bind ( app ) ,
144144 } ;
145145 } ) ;
146146} ) ;
0 commit comments