Skip to content

Commit

Permalink
update tests, fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lilianammmatos authored and robrichard committed Jan 2, 2020
1 parent cf507fd commit b4f75f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/__tests__/starWarsStreamQuery-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ describe('Star Wars Query Stream Tests', () => {
friends: [
{
id: '1000',
appearsIn: ['NEWHOPE', 'EMPIRE', 'JEDI'],
appearsIn: ['NEW_HOPE', 'EMPIRE', 'JEDI'],
name: 'Luke Skywalker',
},
{
id: '1002',
appearsIn: ['NEWHOPE', 'EMPIRE', 'JEDI'],
appearsIn: ['NEW_HOPE', 'EMPIRE', 'JEDI'],
},
{
id: '1003',
Expand Down Expand Up @@ -171,7 +171,7 @@ describe('Star Wars Query Stream Tests', () => {

expect(patches[2]).to.deep.equal({
data: {
appearsIn: ['NEWHOPE', 'EMPIRE', 'JEDI'],
appearsIn: ['NEW_HOPE', 'EMPIRE', 'JEDI'],
},
path: ['hero', 'friends', 2],
label: 'appearsInLabel',
Expand Down
4 changes: 2 additions & 2 deletions src/execution/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export function buildExecutionContext(
variableValues: coercedVariableValues.coerced,
fieldResolver: fieldResolver || defaultFieldResolver,
typeResolver: typeResolver || defaultTypeResolver,
// TODO: Pass these properties in from buildExecution arugments
// TODO: Pass these properties in from buildExecution arguments
dispatcher: new Dispatcher(),
errors: [],
};
Expand Down Expand Up @@ -392,7 +392,7 @@ function executeOperation(

exeContext.dispatcher.add(
label,
// TODO: `path` is initially "undefined", which essentialy means "root",
// TODO: `path` is initially "undefined", which essentially means "root",
// investigate if "undefined" is a valid path value.
path,
() =>
Expand Down
4 changes: 2 additions & 2 deletions src/type/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export type GraphQLSchemaValidationOptions = {|
* EXPERIMENTAL:
*
* If enabled, processed fields from fragment spreads with @defer directive
* are not returned from the iniital query and the respective data is returned
* are not returned from the initial query and the respective data is returned
* in patches after the initial result from the synchronous query.
*
* Default: false
Expand All @@ -342,7 +342,7 @@ export type GraphQLSchemaValidationOptions = {|
* EXPERIMENTAL:
*
* If enabled, items from a plural fields with @stream directive
* are not returned from the iniital query and each item is returned
* are not returned from the initial query and each item is returned
* in a patch after the initial result from the synchronous query.
*
* Default: false
Expand Down

0 comments on commit b4f75f4

Please sign in to comment.