File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -183,23 +183,23 @@ describe('Execute: Handles basic execution tasks', () => {
183
183
} ) ;
184
184
} ) ;
185
185
186
- it ( 'threads context correctly' , async ( ) => {
186
+ it ( 'threads root value context correctly' , async ( ) => {
187
187
const doc = 'query Example { a }' ;
188
188
189
189
const data = {
190
190
contextThing : 'thing' ,
191
191
} ;
192
192
193
- let resolvedContext ;
193
+ let resolvedRootValue ;
194
194
195
195
const schema = new GraphQLSchema ( {
196
196
query : new GraphQLObjectType ( {
197
197
name : 'Type' ,
198
198
fields : {
199
199
a : {
200
200
type : GraphQLString ,
201
- resolve ( context ) {
202
- resolvedContext = context ;
201
+ resolve ( rootValue ) {
202
+ resolvedRootValue = rootValue ;
203
203
}
204
204
}
205
205
}
@@ -208,7 +208,7 @@ describe('Execute: Handles basic execution tasks', () => {
208
208
209
209
await execute ( schema , parse ( doc ) , data ) ;
210
210
211
- expect ( resolvedContext . contextThing ) . to . equal ( 'thing' ) ;
211
+ expect ( resolvedRootValue . contextThing ) . to . equal ( 'thing' ) ;
212
212
} ) ;
213
213
214
214
it ( 'correctly threads arguments' , async ( ) => {
You can’t perform that action at this time.
0 commit comments