Skip to content

Commit 8514211

Browse files
committed
Clean up tests referenced in #344
1 parent dea5aac commit 8514211

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/execution/__tests__/executor-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,23 @@ describe('Execute: Handles basic execution tasks', () => {
183183
});
184184
});
185185

186-
it('threads context correctly', async () => {
186+
it('threads root value context correctly', async () => {
187187
const doc = 'query Example { a }';
188188

189189
const data = {
190190
contextThing: 'thing',
191191
};
192192

193-
let resolvedContext;
193+
let resolvedRootValue;
194194

195195
const schema = new GraphQLSchema({
196196
query: new GraphQLObjectType({
197197
name: 'Type',
198198
fields: {
199199
a: {
200200
type: GraphQLString,
201-
resolve(context) {
202-
resolvedContext = context;
201+
resolve(rootValue) {
202+
resolvedRootValue = rootValue;
203203
}
204204
}
205205
}
@@ -208,7 +208,7 @@ describe('Execute: Handles basic execution tasks', () => {
208208

209209
await execute(schema, parse(doc), data);
210210

211-
expect(resolvedContext.contextThing).to.equal('thing');
211+
expect(resolvedRootValue.contextThing).to.equal('thing');
212212
});
213213

214214
it('correctly threads arguments', async () => {

0 commit comments

Comments
 (0)