Skip to content

Commit 0ebdb35

Browse files
lilianammmatosrobrichard
authored andcommitted
update tests, fix typos
1 parent 4fbe7ba commit 0ebdb35

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
@@ -350,7 +350,7 @@ export function buildExecutionContext(
350350
variableValues: coercedVariableValues.coerced,
351351
fieldResolver: fieldResolver || defaultFieldResolver,
352352
typeResolver: typeResolver || defaultTypeResolver,
353-
// TODO: Pass these properties in from buildExecution arugments
353+
// TODO: Pass these properties in from buildExecution arguments
354354
dispatcher: new Dispatcher(),
355355
errors: [],
356356
};
@@ -395,7 +395,7 @@ function executeOperation(
395395

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

src/type/schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export type GraphQLSchemaValidationOptions = {|
331331
* EXPERIMENTAL:
332332
*
333333
* If enabled, processed fields from fragment spreads with @defer directive
334-
* are not returned from the iniital query and the respective data is returned
334+
* are not returned from the initial query and the respective data is returned
335335
* in patches after the initial result from the synchronous query.
336336
*
337337
* Default: false
@@ -343,7 +343,7 @@ export type GraphQLSchemaValidationOptions = {|
343343
* EXPERIMENTAL:
344344
*
345345
* If enabled, items from a plural fields with @stream directive
346-
* are not returned from the iniital query and each item is returned
346+
* are not returned from the initial query and each item is returned
347347
* in a patch after the initial result from the synchronous query.
348348
*
349349
* Default: false

0 commit comments

Comments
 (0)