Skip to content

Commit 8d3dfac

Browse files
update tests, fix typos
1 parent ff5fb55 commit 8d3dfac

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/__tests__/starWarsDeferredQuery-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe('Star Wars Query Deferred Tests', () => {
128128
label: 'DeferNested',
129129
path: ['hero'],
130130
data: {
131-
appearsIn: ['NEWHOPE', 'EMPIRE', 'JEDI'],
131+
appearsIn: ['NEW_HOPE', 'EMPIRE', 'JEDI'],
132132
primaryFunction: 'Astromech',
133133
},
134134
});

src/__tests__/starWarsStreamQuery-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ describe('Star Wars Query Stream Tests', () => {
129129
friends: [
130130
{
131131
id: '1000',
132-
appearsIn: ['NEWHOPE', 'EMPIRE', 'JEDI'],
132+
appearsIn: ['NEW_HOPE', 'EMPIRE', 'JEDI'],
133133
name: 'Luke Skywalker',
134134
},
135135
{
136136
id: '1002',
137-
appearsIn: ['NEWHOPE', 'EMPIRE', 'JEDI'],
137+
appearsIn: ['NEW_HOPE', 'EMPIRE', 'JEDI'],
138138
},
139139
{
140140
id: '1003',
@@ -171,7 +171,7 @@ describe('Star Wars Query Stream Tests', () => {
171171

172172
expect(patches[2]).to.deep.equal({
173173
data: {
174-
appearsIn: ['NEWHOPE', 'EMPIRE', 'JEDI'],
174+
appearsIn: ['NEW_HOPE', 'EMPIRE', 'JEDI'],
175175
},
176176
path: ['hero', 'friends', 2],
177177
label: 'appearsInLabel',

src/execution/execute.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export function buildExecutionContext(
347347
variableValues: coercedVariableValues.coerced,
348348
fieldResolver: fieldResolver || defaultFieldResolver,
349349
typeResolver: typeResolver || defaultTypeResolver,
350-
// TODO: Pass these properties in from buildExecution arugments
350+
// TODO: Pass these properties in from buildExecution arguments
351351
dispatcher: new Dispatcher(),
352352
errors: [],
353353
};
@@ -392,7 +392,7 @@ function executeOperation(
392392

393393
exeContext.dispatcher.add(
394394
label,
395-
// TODO: `path` is initially "undefined", which essentialy means "root",
395+
// TODO: `path` is initially "undefined", which essentially means "root",
396396
// investigate if "undefined" is a valid path value.
397397
path,
398398
() =>

src/type/schema.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export type GraphQLSchemaValidationOptions = {|
316316
* EXPERIMENTAL:
317317
*
318318
* If enabled, processed fields from fragment spreads with @defer directive
319-
* are not returned from the iniital query and the respective data is returned
319+
* are not returned from the initial query and the respective data is returned
320320
* in patches after the initial result from the synchronous query.
321321
*
322322
* Default: false
@@ -328,7 +328,7 @@ export type GraphQLSchemaValidationOptions = {|
328328
* EXPERIMENTAL:
329329
*
330330
* If enabled, items from a plural fields with @stream directive
331-
* are not returned from the iniital query and each item is returned
331+
* are not returned from the initial query and each item is returned
332332
* in a patch after the initial result from the synchronous query.
333333
*
334334
* Default: false

0 commit comments

Comments
 (0)