Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/execution/__tests__/executor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ describe('Execute: Handles basic execution tasks', () => {

it('does not include illegal fields in output', () => {
const doc = `mutation M {
thisIsIllegalDontIncludeMe
thisIsIllegalDoNotIncludeMe
}`;
const ast = parse(doc);
const schema = new GraphQLSchema({
Expand Down
2 changes: 1 addition & 1 deletion src/execution/__tests__/lists-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('Execute: Accepts any iterable as list value', () => {

it(
'Does not accept (Iterable) String-literal as a List value',
check(GraphQLList(GraphQLString), 'Singluar', {
check(GraphQLList(GraphQLString), 'Singular', {
data: { nest: { test: null } },
errors: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/execution/__tests__/mutations-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('Execute: Handles mutation execution ordering', () => {
});
});

it('evaluates mutations correctly in the presense of a failed mutation', async () => {
it('evaluates mutations correctly in the presence of a failed mutation', async () => {
const doc = `mutation M {
first: immediatelyChangeTheNumber(newNumber: 1) {
theNumber
Expand Down
4 changes: 2 additions & 2 deletions src/execution/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export function collectFields(

/**
* Determines if a field should be included based on the @include and @skip
* directives, where @skip has higher precidence than @include.
* directives, where @skip has higher precedence than @include.
*/
function shouldIncludeNode(
exeContext: ExecutionContext,
Expand Down Expand Up @@ -1238,7 +1238,7 @@ export const defaultFieldResolver: GraphQLFieldResolver<any, *> = function(
};

/**
* This method looks up the field on the given type defintion.
* This method looks up the field on the given type definition.
* It has special casing for the two introspection fields, __schema
* and __typename. __typename is special because it can always be
* queried as a field, even in situations where no other fields
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('Parser', () => {
});

it('parses multi-byte characters', () => {
// Note: \u0A0A could be naively interpretted as two line-feed chars.
// Note: \u0A0A could be naively interpreted as two line-feed chars.
const ast = parse(`
# This comment has a \u0A0A multi-byte character.
{ field(arg: "Has a \u0A0A multi-byte character.") }
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/schema-parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ type Hello {
});
});

it('Union fails with leading douple pipe', () => {
it('Union fails with leading double pipe', () => {
expectSyntaxError('union Hello = || Wo | Rld', 'Expected Name, found |', {
line: 1,
column: 16,
Expand Down
2 changes: 1 addition & 1 deletion src/language/blockStringValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/**
* Produces the value of a block string from its parsed raw value, similar to
* Coffeescript's block string, Python's docstring trim or Ruby's strip_heredoc.
* CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.
*
* This implements the GraphQL spec's BlockStringValue() static algorithm.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/language/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ function readBlockString(source, start, line, col, prev): Token {
}

/**
* Converts four hexidecimal chars to the integer that the
* Converts four hexadecimal chars to the integer that the
* string represents. For example, uniCharCode('0','0','0','f')
* will return 15, and uniCharCode('0','0','f','f') returns 255.
*
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/buildASTSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ describe('Schema Builder', () => {
}

type Subscription {
sbscribeHelloScalars(str: String, int: Int, bool: Boolean): HelloScalars
subscribeHelloScalars(str: String, int: Int, bool: Boolean): HelloScalars
}
`;
const output = cycleOutput(body);
Expand Down
8 changes: 4 additions & 4 deletions src/utilities/__tests__/extendSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ function extendTestSchema(sdl, options) {
}

const testSchemaAST = parse(printSchema(testSchema));
const testSchemaDefinions = testSchemaAST.definitions.map(print);
const testSchemaDefinitions = testSchemaAST.definitions.map(print);

function printTestSchemaChanges(extendedSchema) {
const ast = parse(printSchema(extendedSchema));
ast.definitions = ast.definitions.filter(
node => !testSchemaDefinions.includes(print(node)),
node => !testSchemaDefinitions.includes(print(node)),
);
return print(ast);
}
Expand Down Expand Up @@ -1163,12 +1163,12 @@ describe('extendSchema', () => {
`;
expect(() => extendTestSchema(typeSDL)).to.throw(unknownTypeError);

const intefaceSDL = `
const interfaceSDL = `
extend interface SomeInterface {
quix: Quix
}
`;
expect(() => extendTestSchema(intefaceSDL)).to.throw(unknownTypeError);
expect(() => extendTestSchema(interfaceSDL)).to.throw(unknownTypeError);

const unionSDL = `
extend union SomeUnion = Quix
Expand Down
2 changes: 1 addition & 1 deletion src/validation/__tests__/KnownArgumentNames-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('Validate: Known argument names', () => {
);
});

it('undirective args are invalid', () => {
it('field args are invalid', () => {
expectFailsRule(
KnownArgumentNames,
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ describe('Validate: Overlapping fields can be merged', () => {
);
});

it('allows non-conflicting overlaping types', () => {
it('allows non-conflicting overlapping types', () => {
expectPassesRuleWithSchema(
schema,
OverlappingFieldsCanBeMerged,
Expand Down