Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling, "lexographicSortSchema" => "lexicographicSortSchema" #1220

Merged
merged 1 commit into from
Feb 1, 2018
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/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export {
// language AST.
extendSchema,
// Sort a GraphQLSchema.
lexographicSortSchema,
lexicographicSortSchema,
// Print a GraphQLSchema to GraphQL Schema language.
printSchema,
// Prints the built-in introspection schema in the Schema Language
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import { expect } from 'chai';
import dedent from '../../jsutils/dedent';
import { printSchema } from '../schemaPrinter';
import { buildSchema } from '../buildASTSchema';
import { lexographicSortSchema } from '../lexographicSortSchema';
import { lexicographicSortSchema } from '../lexicographicSortSchema';

function sortSDL(sdl) {
const schema = buildSchema(sdl);
return printSchema(lexographicSortSchema(schema));
return printSchema(lexicographicSortSchema(schema));
}

describe('lexographicSortSchema', () => {
describe('lexicographicSortSchema', () => {
it('sort fields', () => {
const sorted = sortSDL(dedent`
input Bar {
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export { buildASTSchema, buildSchema, getDescription } from './buildASTSchema';
export { extendSchema } from './extendSchema';

// Sort a GraphQLSchema.
export { lexographicSortSchema } from './lexographicSortSchema';
export { lexicographicSortSchema } from './lexicographicSortSchema';

// Print a GraphQLSchema to GraphQL Schema language.
export {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { isIntrospectionType } from '../type/introspection';
/**
* Sort GraphQLSchema.
*/
export function lexographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
const cache = Object.create(null);

const sortMaybeType = maybeType => maybeType && sortNamedType(maybeType);
Expand Down