Skip to content

Commit 2fbd90f

Browse files
update tests, fix typos
1 parent a1eb714 commit 2fbd90f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/__tests__/starWarsStreamQuery-test.js

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export function buildExecutionContext(
351351
variableValues: coercedVariableValues.coerced,
352352
fieldResolver: fieldResolver || defaultFieldResolver,
353353
typeResolver: typeResolver || defaultTypeResolver,
354-
// TODO: Pass these properties in from buildExecution arugments
354+
// TODO: Pass these properties in from buildExecution arguments
355355
dispatcher: new Dispatcher(),
356356
errors: [],
357357
};
@@ -396,7 +396,7 @@ function executeOperation(
396396

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

src/type/schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export type GraphQLSchemaValidationOptions = {|
389389
* EXPERIMENTAL:
390390
*
391391
* If enabled, processed fields from fragment spreads with @defer directive
392-
* are not returned from the iniital query and the respective data is returned
392+
* are not returned from the initial query and the respective data is returned
393393
* in patches after the initial result from the synchronous query.
394394
*
395395
* Default: false
@@ -401,7 +401,7 @@ export type GraphQLSchemaValidationOptions = {|
401401
* EXPERIMENTAL:
402402
*
403403
* If enabled, items from a plural fields with @stream directive
404-
* are not returned from the iniital query and each item is returned
404+
* are not returned from the initial query and each item is returned
405405
* in a patch after the initial result from the synchronous query.
406406
*
407407
* Default: false

0 commit comments

Comments
 (0)